Skip to content

Instantly share code, notes, and snippets.

@vrillusions
vrillusions / gist:446491
Created June 21, 2010 06:31
Reminder to self on converting svn repos
# Permanently move a subversion repos to git
# If you have tags and branch but never used them you can do this:
git svn clone -s --no-metadata --authors-file ~/git_resources/authors https://example.com/svn/repos
git remote add origin [email protected]:username/repo.git
git push -u origin master
# Don't forget to add a README.markdown file.
#
# optionally use git clone on the repository again, this will remove all the svn stuff from
# .git/config file. If you push to github all you need to do is do the initial push and then
@defunkt
defunkt / resque.py
Created November 3, 2009 19:49
Resque client in Python
from redis import Redis
import simplejson
class Resque(object):
"""Dirt simple Resque client in Python. Can be used to create jobs."""
redis_server = 'localhost:6379'
def __init__(self):
host, port = self.redis_server.split(':')
self.redis = Redis(host=host, port=int(port))