Skip to content

Instantly share code, notes, and snippets.

@LilithWittmann
LilithWittmann / autobahn.md
Last active October 26, 2023 12:11
autobahn.md
@papertigers
papertigers / guide.md
Last active October 30, 2019 12:26
bhyve mask viona features

Hiding viona guest checksumming

This is a "workaround" until the bhyve_config stuff is done.

Modified bhyve brand boot

You need to build a platform with this patch. If you are feeling lazy you can grab the binary of that file here.

Mount the file

@drscream
drscream / vmadm-send-delegate-dataset.md
Created November 28, 2018 10:16
SmartOS vmadm send with delegate dataset workaround

Find UUID of your zone

UUID=

Send zone to remote server

Notice this will fail!

vmadm send ${UUID} | ssh REMOTE vmadm receive
@motu81
motu81 / gist:570fe3848aecf2e0b16ac04eb886f0c0
Last active July 7, 2017 20:51
resizing mp4 videos and generate poster .jpg with ffmpg
## rezize videos (change resolution here 854x480)
for i in $(ls p*); do ffmpeg -i $i -vf scale=854:480 $(echo $i | cut -d. -f1)_480p.mp4; done
## generate posters (only from resized files)
for i in $(ls *_480*); do echo ffmpeg -i $i -ss 00:00:14.435 -vframes 1 $(echo $i | cut -d. -f1).jpg; done
@leif
leif / timekeeperville.py
Created September 9, 2012 07:42
timekeeperville
"timekeeperville is a game where you must keep time"
# by Leif Ryge, September 2012, WTFPL
from time import time
from collections import deque
results = []
while True:
adj = raw_input("Use default settings? [Yn] ") == "n"
bpm = int(adj and raw_input("Initial BPM? [120] ") or 120)
level = int(adj and raw_input("Initial level? [1] ") or 1 )
limit = int(adj and raw_input("Initial time limit? [15] ") or 15 )