Skip to content

Instantly share code, notes, and snippets.

@hntrmrrs
hntrmrrs / adding-tailscale-to-edgerouter.md
Created July 9, 2021 22:26 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@hntrmrrs
hntrmrrs / hmrc-reporting-funds.ipynb
Last active July 4, 2019 12:50
HMRC Reporting Funds.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hntrmrrs
hntrmrrs / list.md
Last active January 15, 2019 16:14
US-registered funds with UKRS
Reporting Fund ref Parent Fund HMRC Share Class Ref No.’s Sub Fund Name ISIN No CUSIP No Reporting Fund, with effect from Ceased to be an RF on
E0126 ETFS Gold Trust E0126-0001 ETFS Physical Swiss Gold Shares 26922Y105 01/01/2016
E0125 ETFS Palladium Trust E0125-0001 ETFS Physical Palladium Shares 26923A106 01/01/2016
E0124 ETFS Platinum Trust E0124-0001 ETFS Physical Platinum Shares 26922V101 01/01/2016
E0123 ETFS Precious Metals Basket Trust E0123-0001 ETFS Physical PM Basket Shares 26922W109 01/01/2016
E0122 ETFS Silver Trust E0122-0001 ETFS Physical Silver Shares 26922X107 01/01/2016
V0046 VanEck Vectors ETF Trust V0046-0002 Agribusiness ETF US92189F7006 92189F700 01/01/2011
V0046 VanEck Vectors ETF Trust V0046-0003 J.P. Morgan EM Lo

Keybase proof

I hereby claim:

  • I am hntrmrrs on github.
  • I am hntrmrrs (https://keybase.io/hntrmrrs) on keybase.
  • I have a public key ASBms7vWXjh8-jmj8hbPnES1qn0jprxNQGm4wEV70AvLzwo

To claim this, I am signing this object:

--- initramfs-modules-3.2.0-25-generic 2012-07-10 13:41:08.253177483 +0100
+++ initramfs-modules-3.5.0-2-generic 2012-07-10 13:40:56.053177171 +0100
@@ -5,8 +5,10 @@
kernel/arch/x86/crypto/aesni-intel.ko
kernel/arch/x86/crypto/aes-x86_64.ko
kernel/arch/x86/crypto/blowfish-x86_64.ko
+kernel/arch/x86/crypto/camellia-x86_64.ko
kernel/arch/x86/crypto/ghash-clmulni-intel.ko
kernel/arch/x86/crypto/salsa20-x86_64.ko
+kernel/arch/x86/crypto/serpent-sse2-x86_64.ko
@hntrmrrs
hntrmrrs / gist:2960792
Created June 20, 2012 16:30
chrome+ssh proxy
#!/bin/bash
SSH=/usr/bin/ssh
CHROME=/usr/bin/google-chrome
if [ -z "$1" ] && [ -z "$2" ]; then
echo usage: $0 "<hostname> <port>"
exit
fi
@hntrmrrs
hntrmrrs / port_sz.c
Created March 12, 2012 15:41
Some Erlang struct sizes
#include "config.h"
#include "sys.h"
#include "erl_process.h"
#include "big.h"
#include "erl_binary.h"
/* Compile x86_64 after bootstrap from $(ERL_TOP)/erts/emulator with:
*
* gcc -g -O3 -fomit-frame-pointer \
* -I../x86_64-unknown-linux-gnu \
$ erl -pa .
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9 (abort with ^G)
1> something:baz().
** exception error: no match of right hand side value 133
in function something:baz/0 (something.erl, line 14)
2>
@hntrmrrs
hntrmrrs / example.erl
Created August 3, 2011 12:29
piqi example
-module(example).
-include("piqiex_piqi.hrl").
-export([main/0]).
main() ->
Records =
[#piqiex_foo{bar=true, baz=false, quux=false},
#piqiex_foo{bar=true, baz=true, quux=false},
@hntrmrrs
hntrmrrs / uleb128.erl
Created August 2, 2011 16:43
varint / ULEB128
-module(uleb128).
-export([encode/1, encode/2, decode/1, decode/2]).
% For property tests
-include_lib("proper/include/proper.hrl").
-export([prop_encode_decode/0]).
-spec encode(non_neg_integer()) -> binary().