Skip to content

Instantly share code, notes, and snippets.

@vurpo
vurpo / audiobufferplayerloop.js
Created November 27, 2024 17:38
AudioBufferPlayer with loop point functionality
// input ports
const audioBufferPort = op.inObject("Audio Buffer", null, "audioBuffer");
const playPort = op.inBool("Start / Stop", false);
const inResetStart = op.inTriggerButton("Restart");
const offsetPort = op.inFloat("Offset", 0);
const loopPointPort = op.inFloat("Loop point", 0);
const playbackRatePort = op.inFloat("Playback Rate", 1);
const detunePort = op.inFloat("Detune", 0);
obs = obslua
hotkey_ids = {}
show_all_id = nil
sources = {}
function script_description()
local description = [[adds hotkeys to toggle sources]]
return description
@vurpo
vurpo / obsjam.lua
Last active February 7, 2024 00:24
obs = obslua
output_size = {x = 50, y = 50, width = 1820, height = 980}
transition_time = 0.2
tic_size = {x = 240, y = 136}
reorder = true
function vec2(x,y)
local vec = obs.vec2()
vec.x = x
@vurpo
vurpo / macbook-pro-2011-defective-gpu-fix.md
Created May 1, 2020 23:53 — forked from cdleon/macbook-pro-2011-defective-gpu-fix.md
Macbook Pro 2011 GPU Defect fix macOS Sierra and High Sierra
@vurpo
vurpo / surface-fix-eraser-and-touch.py
Last active December 27, 2024 19:42
https://github.com/StollD/linux-surface-fix-eraser but modified to also disable the touch screen when the pen is near the screen
#!/usr/bin/env python3
"""
Copyright 2019 StollD, 2019 vurpo
Original: https://github.com/StollD/linux-surface-fix-eraser
Licensed under GNU GPL version 3
"""
import os
import os.path
13:54:17: Running steps for project nheko...
13:54:17: Starting: "/usr/bin/cmake" --build . --target all
[ 4%] Performing update step for 'lmdbxx'
[ 3%] Performing update step for 'Tweeny'
[ 4%] Built target LANG_QRC
[ 5%] No configure step for 'lmdbxx'
[ 5%] No configure step for 'Tweeny'
[ 6%] No build step for 'lmdbxx'
[ 6%] No build step for 'Tweeny'
[ 6%] No install step for 'lmdbxx'
@vurpo
vurpo / filter-roms.py
Last active July 10, 2016 16:56
Filter ROM files to remove region/beta duplicates
#!/usr/bin/env python3
import os
import glob
import sys
"""
Script for filtering duplicates of a game from multiple regions, betas, revisions, etc.
Usage: filter-roms.py <file extension>
"""
@vurpo
vurpo / quine.rs
Last active May 12, 2016 21:08
Simple enough Rust quine (no cheats, doesn't depend on environment, filename, file, encoding, etc.)
static CODE: &'static str = r#"fn main() {print!("static CODE: &'static str = r#\"{}\"{};\n{}", CODE, '#', CODE);}"#;
fn main() {print!("static CODE: &'static str = r#\"{}\"{};\n{}", CODE, '#', CODE);}
@vurpo
vurpo / hackertyper.py
Created November 26, 2015 19:23
HackerTyper for the terminal
#!/usr/bin/env python3
import tty,os,sys
import termios
class _Getch:
"""Gets a single character from standard input. Does not echo to the screen."""
def __init__(self):
try:
self.impl = _GetchWindows()
@vurpo
vurpo / hacklab-fi-translation.txt
Last active March 29, 2016 11:19
Translation of Hacklab.fi flyer to English and Swedish
Sivu 1
Kaikille avoimia työtiloja joka puolella Suomea!
Open working space for everyone all over Finland!
Öppet arbetsutrymme för alla överallt i Finland!
Tarvitsetko monipuolisen työtilan?
Need a versatile working space?
Behöver du ett mångsidigt arbetsutrymme?