Skip to content

Instantly share code, notes, and snippets.

View infertux's full-sized avatar
:shipit:

Cédric Félizard infertux

:shipit:
View GitHub Profile
@infertux
infertux / extract_sub_repo.sh
Created August 28, 2014 15:42
Extract part of a Git repository while keeping the history
# create a list of files to NOT keep
create_black_list > blacklist
# add old files which have been renamed
for f in $(cat blacklist); do
git log --pretty=oneline --follow --name-only $f | grep -v ' ' | sort -u >> blacklist
done
# remove files and commits from the Git history (may take a while...)
for f in $(cat blacklist); do
@infertux
infertux / gist:dc54c7789a2a6f4821c5
Created August 24, 2014 14:25
onename.io verification
Verifying that +infertux is my Bitcoin username. You can send me #bitcoin here: https://onename.io/infertux
@infertux
infertux / bitcoin-qt
Created July 28, 2014 19:26
bitcoin-qt wrapper to support multiple wallets
#!/bin/bash -eu
shopt -s extglob # enables pattern lists like +(...|...)
###
# NOTE: Adapt constants below:
BITCOIN_BIN="/home/xxx/bitcoin-0.9.2.1-linux/bin/64/bitcoin-qt"
WALLET_PREFIX="/home/xxx/.bitcoin."
WALLETS=(coinbase kraken etc)