Skip to content

Instantly share code, notes, and snippets.

View BinToss's full-sized avatar
✍️
Making progress...

Noah Sherwin BinToss

✍️
Making progress...
View GitHub Profile
@reasonableperson
reasonableperson / whisper-stream.sh
Last active May 8, 2025 01:09
generate running transcript for web streams
#!/bin/bash
# whisper-stream.sh
#
# Take a url supported by yt-dlp, dump 30-second segments to the current
# directory named by unix timestamp, and transcribe each segment using Whisper.
#
# example: TZ=Australia/Canberra ./whisper-stream.sh "https://..."
#
# The time displayed is the time when ffmpeg first opens the segment for
@maotovisk
maotovisk / native-file-manager-tutorial-en.md
Last active December 31, 2025 21:20
Integrating native file explorer on wine with linux.

Integrating native file explorer on wine with linux.

This is mostly aimed at osu! mappers/storyboarders who need an easy way to access osu! beatmap folders through wine.

Introduction

This is a quick tutorial on how you can edit some wine registry files to make wine open the native linux file explorer when clicking the Open folder menu on whatever application uses it, since the explorer.exe application doesn't integrate that well with the linux environment.

The main use-case for this workaround is the case of those who need to work with a high bandwidth of files being moved around and shared/edited/whatever it's needed to do with it. eg. osu!mappers

Doing it...

1. Getting the useful info

Okay. So effective tick rates in Halo are weird. But completely explainable.

At a tick rate of 30 tps (ticks per second) which is what OG Xbox ran at because it was 30fps (frames per second).

input_firerate is in seconds

minimum_time_passed_between_shots = 1 / input_firerate

We calculate how many ticks should pass for the next shot.

@ShellyHerself
ShellyHerself / blender_addons.md
Created February 19, 2020 06:30
These are some Blender addons I like, demonstrated.

Cool Blender addons

This is a short list of Blender addons that I consider somewhat useful. I'm keeping all of these here so I can save them, and so I can share them around!

Remember! Whenever you install an addon, be sure to check where to look for it in the addon menu. Things may change over time.

TexTools

A set of tools that helps by making UV unwrapping easier.

Source and Releases:
@BinToss
BinToss / config.txt
Last active October 20, 2025 08:29
Halo Custom Edition hardware config
////////////////////////////////
// audio parameters //
////////////////////////////////
// EnableStopStart - Sound card supports fast calls to stop and start buffer functions
// HeadRelativeSpeech - Sound card prefers head relative instead of disabled 3D calls
// InvalidSoundDriver - A sound driver which we know has serious issues
// OldSoundDriver - A sound driver we do not recommend because it's older than ones we have tested
//
////////////////////////////////
// video parameters //
@cpyfferoen
cpyfferoen / NugetManager.cs
Last active May 13, 2025 15:09
NuGet API wrapper to search/install packages WITH AUTHENTICATION the same way Nuget.Exe/Client does it - looks up CredentialProviders and plugins (also for Credentials). Specific use case was Azure DevOps feed access.
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Credentials;
using NuGet.PackageManagement;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.Packaging.Signing;
using NuGet.ProjectManagement;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;
@YeldhamDev
YeldhamDev / iconify.scm
Created May 18, 2019 00:30
"*.ico" generator script for GIMP
;Iconify.scm
;===========================
;Author...Giuseppe Bilotta
;Modified for Gimp 2.4.6+ by Ouch67
;http://www.gimptalk.com/forum/broken-scripts-t33501.html
;Resubmission to Gimp Plugin Registry & GimpTalk by Gargy
;Modified for Gimp 2.8 by Roland Clobus
;------------
;Description...: Iconify plug-in converts a single layer of a single image into a multi-layered image ready to be saved as a Windows icon.
;The new image will contain all standard sizes (16x16, 32x32, 48x48) at all standard bit depths (16 colors, 256 colors, 32-bit RGBA), with transparency support.
@Erikdegroot89
Erikdegroot89 / list-updates.sh
Created February 1, 2019 10:16
Get all commits since last tag
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log
@asus4
asus4 / ffmpeg_hevc_options.txt
Last active December 12, 2024 16:25
ffmpeg GPU HEVC(H.265) encoder options
Encoder hevc_nvenc [NVIDIA NVENC hevc encoder]:
General capabilities: delay
Threading capabilities: none
Supported pixel formats: yuv420p nv12 p010le yuv444p yuv444p16le bgr0 rgb0 cuda d3d11
hevc_nvenc AVOptions:
-preset <int> E..V.... Set the encoding preset (from 0 to 11) (default medium)
default E..V....
slow E..V.... hq 2 passes
medium E..V.... hq 1 pass
@atao
atao / RunAsAdmin.ps1
Last active October 15, 2025 13:05
🕵️ Self privileges escalation with PowerShell.
#Requires -RunAsAdministrator
#OneLine
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
#Or example :
# Store the current location
$Loc = Get-Location