Skip to content

Instantly share code, notes, and snippets.

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 May 27, 2022 12:20
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?
@vurpo
vurpo / check_tracking_number.sh
Last active August 29, 2015 14:22
Pebble Time Kickstarter Portal checker
#!/bin/bash
if [ $(curl -sS -c cookiejar -L https://LINK_TO_PORTAL_FROM_THE_EMAIL_HERE | tac | sed -rne "s/.+&quot;time_tracking_number&quot;:(.+),&quot;time_tracking_url.+/\1/p") != "null" ]
then
pb -a "There's a tracking number now (or maybe the script just failed)"
fi