This short explainer goes through
- where to download your Gains and Losses sheet on one E*Trade account.
- how to quickly estimate taxes owned.
# After creating the network namespace e.g. vo_none_none | |
# See https://unix.stackexchange.com/questions/686155/how-can-i-use-a-bind-mount-in-a-network-namespace | |
# The trick is to bind mount sys, as otherwise ip netns exec will create a mount namespace without it | |
# Note that each invocation of ip netns exec has its own mount namespace! | |
$ (on host) sudo -E unshare -m sh -c 'mount --bind /sys /sys; exec ip netns exec vo_none_none sudo --user archie --preserve-env bash' | |
$ (in netns) sudo umount /sys | |
$ (in netns) sudo dockerd --host=unix:///var/run/docker-netns.sock --data-root=/var/lib/docker-netns --default-runtime=runc | |
$ (in netns) DOCKER_OPTS="--dns=YOURDNSHERE" DOCKER_HOST=unix:///var/run/docker-netns.sock sudo --user archie --preserve-env docker ... # your docker command here |
# This is the client config, run on the client machine with: | |
# sudo wg-quick up ./foo.conf | |
# from wireguard-tools | |
[Interface] | |
Address = 10.200.200.2/32, fd42:42:42::2/128 | |
PrivateKey = clientprivatekey # CHANGEME: Set client private key here | |
# Google DNS | |
DNS = 8.8.8.8 | |
DNS = 2001:4860:4860::8888 |
# Bazarr downloads subtitles | |
version: "3.4" | |
services: | |
bazarr: | |
image: linuxserver/bazarr:1.0.5-development | |
container_name: bazarr | |
restart: unless-stopped | |
environment: | |
- TZ=Europe/London |
#!/bin/bash | |
set -ex | |
STEAM_DIR=/home/$USER/.steam/steam/steamapps | |
AOE4_DIR=$STEAM_DIR/compatdata/1466860 | |
AOE4_WIN_DIR=$AOE4_DIR/pfx/drive_c/windows | |
AOE4_WIN_SYS32_DIR=$AOE4_WIN_DIR/system32 | |
AOE4_WIN_SYS64_DIR=$AOE4_WIN_DIR/syswow64 |
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color
, use screen-256color
which comes with system. Place this command into ~/.tmux.conf
or ~/.config/tmux/tmux.conf
(for version 3.1 and later):
/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉
~/.ssh/config
, set each ssh key for each repository as in this exemple:This guide uses the domain your-domain.tld
and its www.
prefixed version.
It starts the rocket application on 127.0.0.1:1337
and as the user www-data
. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.
import javax.crypto.Mac | |
import javax.crypto.spec.SecretKeySpec | |
Object HMACgen { | |
def generateHMAC(sharedSecret: String, preHashString: String): String = { | |
val secret = new SecretKeySpec(sharedSecret.getBytes, "SHA256") //Crypto Funs : 'SHA256' , 'HmacSHA1' | |
val mac = Mac.getInstance("SHA256") | |
mac.init(secret) | |
val hashString: Array[Byte] = mac.doFinal(preHashString.getBytes) |