Skip to content

Instantly share code, notes, and snippets.

View Jorijn's full-sized avatar

Jorijn Schrijvershof Jorijn

View GitHub Profile
@Jorijn
Jorijn / migrate.configmap.yaml
Created April 11, 2023 09:28 — forked from deefdragon/migrate.configmap.yaml
Migrating Kubernetes PVC/PVs from one storage class to another
apiVersion: v1
kind: ConfigMap
metadata:
# any name can be used; Velero uses the labels (below)
# to identify it rather than the name
name: change-storage-class-config
# must be in the velero namespace
namespace: velero
# the below labels should be used verbatim in your
# ConfigMap.
@Jorijn
Jorijn / keybase.md
Created February 7, 2021 08:03
keybase.md

Keybase proof

I hereby claim:

  • I am jorijn on github.
  • I am jorijns (https://keybase.io/jorijns) on keybase.
  • I have a public key ASCsS2jv8uN57P0fYVthxMeBGucZG2Kd2hkri6MBDcY7bgo

To claim this, I am signing this object:

#!/bin/bash
FAILFILE=./failcombinaties
# Clear out out lists
> /tmp/in
> /tmp/out
# Store invoices in an array for possible reuse
declare -a INVOICES
@Jorijn
Jorijn / auto_rebalance.conf
Last active February 19, 2022 13:31
Attempt at automatic rebalancing for LND with rebalance-lnd, although it could fit any script... 🤷‍♂️
420183667455285923,rompert.comguy,20,20
590034546445293500,otherpeeralias,20,20
@Jorijn
Jorijn / README.md
Created February 27, 2020 08:35 — forked from pamolloy/README.md
Ubiquiti USG configuration for Wireguard

Download the latest ugw3 package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb.

cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
@Jorijn
Jorijn / lnd-watchtower-over-tor.md
Last active July 1, 2021 07:21
Instructions to enable the LND watchtower over TOR

Create a TOR hidden service

In configuration file /etc/tor/torrc add:

HiddenServiceDir /var/lib/tor/hidden_service/lnd_watchtower
HiddenServiceVersion 3
HiddenServicePort 9911 127.0.0.1:9911

Now reload the TOR daemon with systemctl reload tor. Inspect the hostname TOR has assigned to your secret service with:

@Jorijn
Jorijn / docker-compose.yml
Created October 19, 2019 07:37
Docker Compose file to be used in combination with https://gist.github.com/Jorijn/141f49dd0c69901f28215893d5900bca. Place this in the cloned root of the blockbook project and run `docker-compose up -d`. Configuration sample: https://gist.github.com/Jorijn/c0f5d3daf6ab6d35ac25b47c2a5be331
version: "3"
services:
blockbook:
container_name: blockbook
restart: always
build: .
entrypoint:
- /go/src/blockbook/blockbook
- -sync
- -blockchaincfg=/home/blockbook/cfg/cfg.json
{
"coin_name": "Bitcoin",
"coin_shortcut": "BTC",
"coin_label": "Bitcoin",
"rpc_url": "http://somehost:8332",
"rpc_user": "someuser",
"rpc_pass": "somepassword",
"rpc_timeout": 25,
"parse": true,
"message_queue_binding": "tcp://somehost:zmqpubrawblockport",
@Jorijn
Jorijn / Dockerfile
Last active April 14, 2021 04:33
A Dockerfile for running the Trezor backend (blockbook) in Docker, this should be placed in the cloned git repository of https://github.com/trezor/blockbook. Configurationfile: https://gist.github.com/Jorijn/c0f5d3daf6ab6d35ac25b47c2a5be331 Docker Compose file: https://gist.github.com/Jorijn/7e1d3e7a241a98680558302a7b41586c
# initialize from the image
FROM debian:9
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y build-essential git wget pkg-config lxc-dev libzmq3-dev \
libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev \
liblz4-dev graphviz && \
apt-get clean
@Jorijn
Jorijn / iterm2-solarized.md
Created April 25, 2018 11:01 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k