Skip to content

Instantly share code, notes, and snippets.

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
@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
@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 / 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.
*
console.log('In ext.js')
#!/usr/bin/env bash
#if 0
# Original spark: https://zachholman.com/spark/
# C implementation (reproduced below): https://git.zx2c4.com/spark/tree/spark.c
# The first time this file is executed it will compile itself.
echo -n "Compiling for the first time... "
BAK=/tmp/$(basename $0).bak
cp $0 $BAK
sed '1s;^;//;' $0 | gcc -o $0 -xc - -lm
echo "Done. Original code backed up at $BAK."
@armarti
armarti / generate_client_cert.sh
Last active July 18, 2019 03:47
Docker scripts
#!/usr/bin/env bash
# https://docs.docker.com/engine/security/https/#daemon-modes
set -eo pipefail
if [ $UID -ne 0 ]; then
echo "You must run this script as root."
exit 1
fi
CLNT_HOST="$1"
@armarti
armarti / tweaks_setup.sh
Created December 17, 2018 18:08
Tweaks Setup
#!/bin/sh
@armarti
armarti / CMakeSettings_schema.json
Created December 12, 2018 12:21
Copy of CMakeSettings_schema.json installed with Visual Studio 2017
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"environments": {
"type": "array",
"description": "A list of “environment” groups that contain key value pairs defining variables that are applied to each configuration in a the CMakeSettings.json.",
"items": {
"type": "object",
"properties": {
@armarti
armarti / blank.txt
Created December 11, 2018 10:59
Testing file downloads over HTTPS
NOT!