This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
NewerOlder