Skip to content

Instantly share code, notes, and snippets.

Aymeric Barthe aymericb

View GitHub Profile
@aymericb
aymericb / cron-update.sh
Last active Feb 20, 2017
NGINX with Let's Encrypt configuration
View cron-update.sh
#!/bin/sh
/srv/letsencrypt/letsencrypt-auto certonly --webroot -w /srv/blog.barthe.ph/www -d blog.barthe.ph --renew-by-default --agree-tos
service nginx reload
@aymericb
aymericb / bitcoin_balance.ts
Created Apr 13, 2014
A quick and dirty script written in TypeScript, using node.js and the Blockchain.info API, to compute the balance of a Bitcoin wallet file.
View bitcoin_balance.ts
/// <reference path="../lib/node.d.ts"/>
/// <reference path="../lib/underscore.d.ts"/>
/// <reference path="../lib/node-fibers.d.ts"/>
/**
* A quick and dirty script written in TypeScript, using node.js and the Blockchain.info API,
* to compute the balance of a Bitcoin wallet file. It supports encrypted wallets as well.
* The script goes through all the addresses from the internal key pool, ask blochain.info
* for the balance, and sum it all up.
* @author Aymeric Barthe
You can’t perform that action at this time.