Skip to content

Instantly share code, notes, and snippets.

@bfollington
bfollington / caption_video.sh
Created February 8, 2025 01:42
MLX Whisper + FFMpeg video caption script
#!/bin/bash
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Function to install mlx_whisper using uv
install_mlx_whisper() {
if command_exists uv; then
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 8, 2025 01:42
resharper-clt.portable v2025.1.0-EAP03 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\resharper-clt.portable\JetBrains.ReSharper.CommandLineTools.2025.1.EAP3.Checked.zip.txt" checksum="5E67160049618A432C885140ABE81355" />
<file path="C:\ProgramData\chocolatey\lib\resharper-clt.portable\resharper-clt.portable.nupkg" checksum="E4F8CC617002ADAAF8B7A34CAF97F1B4" />
<file path="C:\ProgramData\chocolatey\lib\resharper-clt.portable\resharper-clt.portable.nuspec" checksum="F677A36B154C10F9E07FD41F28B4FDBC" />
<file path="C:\ProgramData\chocolatey\lib\resharper-clt.portable\tools\antlr.runtime.dll" checksum="219A412376C858428975BE8174121A51" />
<file path="C:\ProgramData\chocolatey\lib\resharper-clt.portable\tools\Appccelerate.StateMachine.dll" checksum="3A1E2DCDD5550976F16F4EE211720DA0" />
<file path="C:\ProgramData\chocolatey\lib\resharper-clt.portable\tools\Appcceler
#!/bin/bash
set -e
# Configuration
REPO_URL="https://github.com/OpenInterpreter/open-interpreter.git"
BRANCH="development"
PYTHON_VERSION="3.12"
VENV_DIR="$HOME/.openinterpreter/venv"
#!/bin/bash
set -e
# Configuration
REPO_URL="https://github.com/OpenInterpreter/open-interpreter.git"
BRANCH="development"
PYTHON_VERSION="3.12"
VENV_DIR="$HOME/.openinterpreter/venv"
@Scratch2033YT
Scratch2033YT / scratchprojectadder.py
Created February 8, 2025 01:40
Add scratch project to studios
from scratchclient import ScratchSession
import requests
from colorama import init, Fore
# This will add your scratch project to studios.
# Making you more views!
# Made by ChatGPT
# Initialize colorama for Windows compatibility
init(autoreset=True)
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 8, 2025 01:38
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: 016f7b80-9a55-4287-8577-1fe67a317f8a
-- Server started: February 08, 2025 01:34 AM UTC | Server uptime: 264 seconds
------------------ LOADB LOGS ------------------
{
}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 8, 2025 01:38
Rimworld output log published using HugsLib
Log uploaded on Saturday, February 8, 2025, 9:38:28 AM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[v:2.3.1.0][mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Faster Game Loading(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0), System.Drawing(av:4.0.0,fv:4.6.57)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Visual Exceptions(brrainz.visualexceptions)[v:1.3.2.0][mv:1.3.2.0]: CrossPromotion(1.1.2), VisualExceptions(1.3.2)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 8, 2025 01:37
Rimworld output log published using HugsLib
Log uploaded on Friday, February 7, 2025, 8:37:47 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 8, 2025 01:37
Rimworld output log published using HugsLib
Log uploaded on Saturday, February 8, 2025, 4:35:48 AM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
@fabsch225
fabsch225 / btree.py
Created February 8, 2025 01:37
BTree in Python from programiz FIXED
# Original Credit: https://www.programiz.com/dsa/b-tree
# Howerver, the original code was not working properly. Specifically, during deletion, there could
# be a case where the last child is merged, and the current index is out of bounds. -> line 88
# Modified by: Fabian Schuller
# Searching a key on a B-tree in Python
# Create a node
class BTreeNode:
def __init__(self, leaf=False):