Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1PDuuMA8grge2kgJXLUeABbDTr11WALLTB https://explorer.blockstack.org/address/1PDuuMA8grge2kgJXLUeABbDTr11WALLTB
@lumilux
lumilux / keybase.md
Created March 7, 2014 07:24
keybase proof

Keybase proof

I hereby claim:

  • I am lumilux on github.
  • I am hans (https://keybase.io/hans) on keybase.
  • I have a public key whose fingerprint is CD94 5BBA 7497 D3DF E909 4718 7F43 80D3 1722 C03D

To claim this, I am signing this object:

@lumilux
lumilux / gist:1513884
Created December 23, 2011 11:03
find and cat all ideas
find /Users/hans -iname '*idea*.txt' -maxdepth 2 -exec cat {} \; -exec printf "\n\n-----\n\n" \; > all-output.txt
@lumilux
lumilux / redisdns.py
Created November 28, 2011 07:45 — forked from wheresalice/redisdns.py
Python DNS server with Redis backend
# A naive dns server with a Redis backend
# Set keys in Redis you want to be authoritative for (set google.com. 127.0.0.1)
# Tip: Use Redis's ttl functions to have temporary names
# Currently only does A records, feel free to fix that
#
# Licensed under the PSF License
# Thanks to: http://code.activestate.com/recipes/491264-mini-fake-dns-server/
# Author: @Kaerast <alice@kaerast.info>
import socket
@lumilux
lumilux / compl1.py
Created February 28, 2011 08:36 — forked from shinzui/compl1.rb
# compl1.py - Redis autocomplete example
# download female-names.txt from http://antirez.com/misc/female-names.txt
import redis #redis-py
import sys
r = redis.Redis(host='localhost', port=6379, db=1)
# Create the completion sorted set
if not r.exists('compl'):