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 April 18, 2024 01:44
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

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 February 15, 2021 04:00
Halo Custom Edition harware 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 //
@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.
@asus4
asus4 / ffmpeg_hevc_options.txt
Last active April 15, 2023 23:44
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 1, 2023 19:34
🕵️ 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
$Loc = Get-Location
"Security.Principal.Windows" | % { IEX "( [ $_`Principal ] [$_`Identity ]::GetCurrent() ).IsInRole( 'Administrator' )" } | ? {
$True | % { $Arguments = @('-NoProfile','-ExecutionPolicy Bypass','-NoExit','-File',"`"$($MyInvocation.MyCommand.Path)`"","\`"$Loc\`"");
Start-Process -FilePath PowerShell.exe -Verb RunAs -ArgumentList $Arguments; } }
@relyky
relyky / IsNullable.cs
Last active March 24, 2024 04:38
c#, is nullable, IsNullable, How to check if an object is nullable?
///
/// How to check if an object is nullable?
/// ref → http://stackoverflow.com/questions/374651/how-to-check-if-an-object-is-nullable
///
static bool IsNullable<T>(T obj)
{
if (obj == null) return true; // obvious
Type type = typeof(T);
if (!type.IsValueType) return true; // ref-type
@ChadSki
ChadSki / app.csx
Last active August 14, 2023 11:02
Reading from Halo's memory in 40 lines of C#
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
// define struct
[StructLayout(LayoutKind.Sequential)] public struct IndexHeaderStruct {
public uint MemoryOffset;
public uint MapID;
public uint TagCount;
public uint VerticieCount;
@agarny
agarny / github-import-issues
Last active June 7, 2023 22:44
Import GitHub issues from one repository to another (incl. milestones, labels and comments).
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This script came about after I removed several big files from a GitHub
# repository (see https://gist.github.com/agarny/5541082) and force pushed
# everything back to GitHub. However, cloning the 'new' GitHub repository still
# results in those big files being present in the git history. This is, among
# other things, due to some pull requests I have in that repository and which
# reference those big files. I contacted GitHub about this, but there seems to
# be nothing that they can do about it. So, I was left with no other choice but