Skip to content

Instantly share code, notes, and snippets.


This October the Tox developer community will be holding it's third annual Conference in the @metalabvie in the heart of Vienna, Austria.
The Event will be 3 full days, from Friday 11th October to Sunday 13th October.

We will talk about Tox, and other security related and interesting topics.
If you would like to attend, meet the Tox devs, do some live hacking, or just socialize, get your free ticket (and reserve a T-shirt) here:
  https://pretix.eu/ZMetalab/ToxCon2019/
You can find the exact address on your ticket!

; 8086 Snek
;
; Based on Invaders in 512 bytes by Oscar Toledo G. (c) Copyright 2015-2019 Oscar Toledo G.
; https://github.com/nanochess/Invaders
;
; Using PUSHA and POPA the code can be smaller, not enabled by
; default.
;
%ifndef pure8088 ; Define as 0 to create a 80186/80286 binary
@strfry
strfry / README.md
Last active December 23, 2024 08:38
Deploys FreeBSD on a Hetzner cloud server

Deploys FreeBSD on a Hetzner cloud server

Prerequisites:

  • A Hetzner Cloud API Token (Pass in via APIKEY)
  • jq
  • sshpass

Usage

Replace server_id variable with your hetzner server Id

How to create a Wake-on-LAN API Endpoint with OpenWRT LuCI

Disclaimer

I'm stuck on OpenWRT 18.06, and these info may soon be obsoleted by newer versions, and/or the more detailed ACL scheme in LuCI2.

Motivation

The motivation So i have this server at home, that serves http://hq.strfry.org , which i sometimes switch off at night.

@strfry
strfry / gist:422b83f7d6e695c9bc1d55f3b4d2a6d1
Last active March 27, 2025 04:49
v4l2loopback example
#!/bin/sh -e
# Dependencies
apt install -y v4l2loopback-dkms v4l2loopback-utils gstreamer1.0-plugins-good
apt install -y gstreamer1.0-plugins-bad # h264parse
apt install -y gstreamer1.0-libav # H.264
# Reset module state
modprobe -r v4l2loopback
modprobe v4l2loopback
#!/bin/sh
ALBUMS="claatin1 claatin2 claatin3 allboommm1 allboommm2 silver dancecore"
JS_PREAMBLE="\
var Amplitude = {}; \
Amplitude.init = (x) => { console.log(JSON.stringify(x)) }; \
"
for ALBUM in $ALBUMS ; do