Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View aymericb's full-sized avatar

Aymeric Barthe aymericb

View GitHub Profile
@aymericb
aymericb / cron-update.sh
Last active February 20, 2017 20:18
NGINX with Let's Encrypt configuration
#!/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 April 13, 2014 17:32
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.
/// <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