Skip to content

Instantly share code, notes, and snippets.

View wulff's full-sized avatar

Morten Wulff wulff

View GitHub Profile
@christianpanton
christianpanton / keybase-import-keys.py
Last active September 14, 2015 09:44
Import public keys of already tracked users from Keybase, useful if you use Keybase on multiple computers or after reinstall.
#!/usr/bin/env python
""" WARNING: crypto is hard to do right, bugs are hard to discover. Don't use if you life depends on it. """
import os.path
from subprocess import Popen, PIPE
import json
# requests and beautifulsoup should be in your favorite package manager already
import requests
@rfay
rfay / gist:1398086
Created November 27, 2011 20:20
My nginx rewrite
server {
listen 80;
#server_name ~^($<domain>.*)\.l\/.*$;
server_name ~^(www\.)?(?<domain>.+)\.(l|bigsony|b)$;
#gzip off;
root /home/rfay/workspace/$domain;
fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;
client_max_body_size 128m;