Skip to content

Instantly share code, notes, and snippets.

XertroV /
Created Apr 29, 2020
installs the stuff and does some config for a dracut-ssh-crypt like setup -- ssh into initramfs to unlock the luks partition
#!/usr/bin/env bash
# installs the stuff and does some config for a dracut-ssh-crypt like setup -- ssh into initramfs to unlock the luks partition
sudo apt install dropbear{,-initramfs}
sudo mkdir -p /etc/dropbear-initramfs
XertroV /
Last active Sep 5, 2019 - a generic watch-for-files-and-restart-a-command utility for linux.
#!/usr/bin/env bash
# if you have issues, try increasing /proc/sys/fs/inotify/max_user_watches
echo "$0 -i 'INCLUDE_FILES' [-e 'EXCLUDE_FILES'] -c 'COMMAND'"
cat << EOF - a generic watch-for-files-and-restart-a-command utility for linux.
Author: Max Kaye
License: Public Domain
XertroV /
Last active Mar 6, 2019
Draft for

One Red Nail

A statement on the importance of philosophy and morality in daily life.

The Physical

The left hand ring finger's nail is painted red.

The Background

XertroV /
Created Aug 15, 2015
pycoin demonstration: send all the coins at an address
#!/usr/bin/env python3
import os
import argparse
from binascii import hexlify, unhexlify
import sys
from urllib.error import HTTPError
from pycoin.key import Key
View gist:6f267f3000fdb32d056011bf4b18443c
> var c = eth.contract([{
"constant": true,
"inputs": [],
"name": "getCount",
"outputs": [
"name": "count",
"type": "uint256"
XertroV / ctfHelpers.sol
Last active Jun 17, 2018
Eth CTF Helpers
View ctfHelpers.sol
pragma solidity ^0.4.24;
contract _useful {
mapping (address => bool) public owners;
address[] deployed;
event Deployed(address d);
event SD();
XertroV / gist:d503a1e9db4bc1fd617c5ee20a619c4c
Created Feb 22, 2018
Copy of chat log from Flux slack - #dev - 21-22 Feb 2018
View gist:d503a1e9db4bc1fd617c5ee20a619c4c

<continued from #general>

Sven Mason [15:52] I have not used Digital Ocean before (where the forum is currently hosted), it seems like there is more admin involved than eg AWS, but it is cheaper. Maybe AWS would take less admin resources than Digital Ocean once it is setup? Also AWS being the larger perhaps there is a higher chance supporters will have experience working with it? (this is if we chose a self-hosted environment). We could stay with Digital Ocean if Max wanted and try to fix what is going wrong there, to do that we could discuss admin access protocol with @max?

Max Kaye [16:51] Whoops - posted reply in #general @sventhebarbarian - Auto updates actually stopped working - it's manual updates that are breaking 😕 DO and AWS are equiv in terms of admin - DO is actually a bit nicer I think bc you can reset pws easily and share nodes much more easily (via a team) than you can with AWS

View ipfsPinned.js
const IPFS = require('ipfs-api');
const R = require('ramda');
const async = require('async');
const child_process = require('child_process')
const ipfs = IPFS('localhost', '5001', {protocol: 'http'});
let size = 0;
let nErrors = 0;
View gist:5001704845eeba1075c1abfb7fb1fc86
Error found:
in module Test.QuickCheck.Gen
at <path>/bower_components/purescript-quickcheck/src/Test/QuickCheck/Gen.purs line 79, column 16 - line 79, column 52
No type class instance was found for
Control.Monad.Rec.Class.MonadRec (State
{ newSeed :: Seed
, size :: Int
View geth-rpc-hang
> debug.stacks()
goroutine 487 [running]:*HandlerT).Stacks(0xc8200b7360, 0x0, 0x0)
/private/tmp/ethereum-20160716-84588-1tmln98/build/_workspace/src/ +0x7b, 0x4bb7468, 0x13, 0x4c01d08, 0x4, 0xc8202d4e10, 0x1, 0x1, 0x0, 0x0, ...)
/usr/local/opt/go/libexec/src/reflect/value.go:435 +0x120d
reflect.Value.Call(0x4933dc0, 0x4bb7468, 0x13, 0xc8202d4e10, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/opt/go/libexec/src/reflect/value.go:303 +0xb1*Server).handle(0xc8200190b0, 0x6eec120, 0xc8202380c0, 0x6856370, 0xc8200b79a0, 0xc829b52850, 0x0, 0x0, 0x48d0a40)
/private/tmp/ethereum-20160716-84588-1tmln98/build/_workspace/src/ +0x1260
You can’t perform that action at this time.