Skip to content

Instantly share code, notes, and snippets.

Verifying that +codinginmysleep is my openname (Bitcoin username). https://onename.io/codinginmysleep
@enmaku
enmaku / keybase.md
Created August 19, 2014 05:51
keybase.md

Keybase proof

I hereby claim:

  • I am enmaku on github.
  • I am codinginmysleep (https://keybase.io/codinginmysleep) on keybase.
  • I have a public key whose fingerprint is 1F42 78E6 AE22 3326 B632 50EC 7E16 9149 0940 E036

To claim this, I am signing this object:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#fetch Gravatars
import os
import requests
import subprocess
import hashlib
@enmaku
enmaku / gist:6694467
Created September 25, 2013 02:32
broadleaf build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="site" default="build-app" basedir="."
xmlns:artifact="antlib:org.apache.maven.artifact.ant"
xmlns:rsel="antlib:org.apache.tools.ant.types.resources.selectors">
<!-- import the ant / maven integration tasks -->
<path id="maven-ant-tasks.classpath" path="../lib/maven-ant-tasks-2.1.3.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" />
<property name="project.root" location="../../"/>
@enmaku
enmaku / gist:4062303
Created November 12, 2012 22:05
Bitcoin Speculation Index
import json
import urllib2
r = urllib2.urlopen("http://blockchain.info/charts/trade-volume?timespan=all&format=json")
tradevol_string = r.read()
r.close()
r = urllib2.urlopen("http://blockchain.info/charts/estimated-transaction-volume-usd?timespan=all&format=json")
txvol_string = r.read()
r.close
@enmaku
enmaku / walletunlock.py
Created October 4, 2011 00:17
Demo of how to unlock Bitcoin wallet using JSON RPC
from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:8332")
pwd = raw_input("Enter wallet passphrase: ")
access.walletpassphrase(pwd, 60)
@enmaku
enmaku / walletchangepass.py
Created October 4, 2011 00:16
Demo of how to change Bitcoin wallet password using JSON RPC
from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:8332")
pwd = raw_input("Enter old wallet passphrase: ")
pwd2 = raw_input("Enter new wallet passphrase: ")
access.walletpassphrasechange(pwd, pwd2)