Skip to content

Instantly share code, notes, and snippets.

console.log('In ext.js')
@armarti
armarti / tomato_binary_cfg_to_nvram_txt.c
Created July 24, 2020 16:14
Small CLI utility for converting FreshTomato (and probably many other Tomato) .cfg backup files to readable nvram values
/**
* Converted from https://bitbucket.org/pedro311/freshtomato-arm/raw/86fd29f5a23b1ab4b2dfb4bdae2a625fd3a134a9/release/src-rt-6.x.4708/router/nvram_arm/main.c
* which contained the following copyright.
*/
/*
* Frontend command-line utility for Linux NVRAM layer
*
* Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
*
@armarti
armarti / testcase11.txt
Last active July 26, 2020 10:27
HackerRank Array Manipulation Challenge5 2020-07-26
This file has been truncated, but you can view the full file.
10000000 100000
5216499 7952900 40114
1259346 5532643 46983
6456306 6852278 4355
1373438 9429380 29682
4444124 6078464 52806
545944 6825705 14952
1614252 9543882 60420
835901 7133752 13435
2307895 9216406 58376
@armarti
armarti / mktap
Created September 28, 2020 19:16
#!/usr/bin/env bash
cat <<'EOF'
This is where we get the `mknod` numbers from:
* /dev/net/tun - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/devices.txt#:~:text=%2Fdev%2Fnet%2Ftun
* /dev/tap0 = https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/devices.txt#:~:text=%2Fdev%2Ftap0
EOF

Postbox / ThunderBird + ProtonMail MultiAddress Setup

This has only been tried on macOS 11. And even then I haven't run these instructions end-to-end. This is pieced together from trial & error.

This could be scripted but it's late.

  1. Go to devtools of https://beta.protonmail.com/settings/u/0/identity