Skip to content

Instantly share code, notes, and snippets.

Hello world!

Wouter wouterds

Hello world!
View GitHub Profile
View hackintosh-logs.txt
00:000 00:000 OC: OpenCore DBG-069-2021-05-03 is loading in Optional mode (0/0)...
00:110 00:110 OC: Boot timestamp - 2021.05.05 20:43:39
00:194 00:083 OCCPU: MP services threads 8 (enabled 8) - Success
00:224 00:030 OCCPU: MP services Pkg 1 Cores 4 Threads 2 - Success
00:254 00:030 OCCPU: Found Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
00:284 00:030 OCCPU: Signature 506E3 Stepping 3 Model 5E Family 6 Type 0 ExtModel 5 ExtFamily 0 uCode C2
00:313 00:029 OCCPU: EIST CFG Lock 1
00:343 00:029 OCCPU: TSC Adjust 0
00:373 00:029 OCCPU: Known Model Core Crystal Clock Frequency 24000000Hz
00:403 00:030 OCCPU: CPUFrequencyFromART 4008000000Hz 4008MHz = 24000000 * 334 / 2
View wordlist.txt
View gist:95b302ad8449db82a5280c1480ea8d1e
mysqlcheck --all-databases --optimize --skip-write-binlog -u root -p
wouterds / docker-compose.yml
Last active Mar 25, 2021
Umbrel behind (traefik) reverse proxy
View docker-compose.yml
version: '3.7'
x-logging: &default-logging
driver: journald
tag: "{{.Name}}"
container_name: tor
image: lncm/tor:
wouterds /
Last active Mar 25, 2021
rsync backup script
RSYNC="/usr/bin/sudo /usr/bin/rsync"
DTIME=`date +"%Y%m%d"`
mkdir -p $LOCATION
rsync -avx \
--rsync-path="$RSYNC" \
wouterds /
Created Feb 6, 2021 — forked from spalladino/
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
wouterds / gist:fd548d3400d79bce47be87def9857739
Created Nov 6, 2020
Cache static assets served from node container for a year
View gist:fd548d3400d79bce47be87def9857739
location ~ \.(?:ico|css|js|gif|jpe?g|png|webp|gif|svg|txt)$ {
proxy_pass http://node:3000;
proxy_hide_header Cache-Control;
add_header Cache-Control "public, max-age=31536000, immutable";
View .eslintrc.js
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
extends: [
wouterds /
Created Mar 20, 2020 — forked from tzmartin/
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
View gist:e96211df8d405090dd23974bf17b4200
This method also works with wireless doorbells and other similar systems.
We're gonna need a RTL-SDR, which is basically a radio dongle and a cheap radio transmitter.
We will also need a microcontroller to interface with the transmitter, any Arduino would do it.
You can get one for less than 8$ on Ebay, a 433MHz radio transmitter for less than 1$ and any kind of arduino clone for less than 3$.
Let's start...
First you need to install the drivers for the RTL-SDR, the Arduino IDE if you don't already have it,
the Audacity Audio Analyser/Editor and finally a spectrum analyzer, you can use SDR# or GQRX in Windows and GQRX on linux.