Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python2
import urllib2
import sys
import re
import threading
from hashlib import md5
def get_images(url):
r = re.compile('//images.4chan.org/[^"]*(?:.jpg|.jpeg|.bmp|.gif|.png)')
@jself
jself / .zshrc
Created June 7, 2012 00:15
My .zshrc
#init compinit, colors
autoload -Uz compinit; compinit
autoload -U colors && colors
#options
setopt inc_append_history
setopt share_history
setopt autopushd pushdminus pushdsilent pushdtohome
setopt auto_menu
setopt complete_in_word
@jself
jself / repos.py
Created March 26, 2012 20:50
git multi repos processor
#!/usr/bin/env python
from pbs import git, cd, pwd
from cmd2 import Cmd
class GitPrompt(Cmd):
def __init__(self, *args, **kwargs):
Cmd.__init__(self, *args, **kwargs)
self.base_dir = '/home/jself/devel/cms_dev/src/'
self.repos = ['storyville', 'medley-templates', 'signin']
import zmq
import threading
import uuid
import time
import itertools
from homingbird import Node, LocalNode
def get_random():
return str(uuid.uuid4()).replace('-','')
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts
server {
listen 80 default;
server_name domain.com;