Skip to content

Instantly share code, notes, and snippets.

sudo ec/build/samus/util/ectool fanduty 0
{
"captainVersion": "2",
"instructions": {
"start": "start",
"end": "end"
},
"variables": [],
"dockerCompose": {
"version": "3",
"services": {
captainVersion: 1
instructions:
start: BTCPay Server is a self-hosted, open-source cryptocurrency payment processor. It's secure, private, censorship-resistant and free. https://btcpayserver.org/
end: |
The bitcoin application is ready.
If you selected the testnet network, you can speed up the blockchain sync as follow
1. scale down to 0 bitcoind instance
2. download a blockchain snapshot here https://keybase.pub/coinfused/
3. run ssh [email protected] "cd /var/lib/docker/volumes/captain--bitcoin-testnet-datadir/_data/testnet3 && tar -xzv" < /your/local/path/testnet.tar.gz
4. scale up the bitcoind instance to 1 or more
import { map, compose, dropLast, last, length } from 'ramda'
import { crypto, HDNode } from 'bitcoinjs-lib'
import * as BIP32 from 'bip32'
import BIP39 from 'bip39'
import Transport from "@ledgerhq/hw-transport-node-hid"
import AppBtc from "@ledgerhq/hw-app-btc"
import * as bippath from 'bip32-path'
const mnemonic = 'deer scout bonus forward rubber rate embrace street tragic know wife tongue photo stool rival century cruise inspire cinnamon before sudden include strong flip'
@learntheropes
learntheropes / kbfs.md
Last active August 16, 2019 20:03
kbfs staff

Get ubuntu/debian default mountdir

printenv | grep $XDG_RUNTIME_DIR

If $XDG_RUNTIME_DIR exists, then KBFS is mounted at $XDG_RUNTIME_DIR/keybase/kbfs Otherwise is mounted at /home/user/.config/keybase/kbfs

Change mountdir

@learntheropes
learntheropes / debian_ubuntu_command_line.md
Created August 16, 2019 21:20
Debian/Ubuntu command line staff

Get timezone

timedatectl status | grep "Time zone"
@learntheropes
learntheropes / main.scss
Last active September 17, 2019 14:57
sass in nuxtjs with bulma
npm install --save-dev @nuxtjs/style-resources sass-loader node-sass
sudo wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash
<template>
<section class="section container">
<div class="card">
<div class="card-image">
<figure class="image is-4by3">
<img
src="https://bulma.io/images/placeholders/1280x960.png"
alt="Placeholder image"
/>
</figure>
@learntheropes
learntheropes / swap_zfs.sh
Last active July 5, 2023 03:37
Ubuntu set swap on a zfs drive
# https://askubuntu.com/questions/1198903/can-not-use-swap-file-on-zfs-files-with-holes/1198916#1198916
sudo zfs create -V 8G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false rpool/swap
sudo mkswap -f /dev/zvol/rpool/swap
sudo swapon /dev/zvol/rpool/swap
# Make the swap persistent after reboot
# https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04#step-5-making-the-swap-file-permanent