Skip to content

Instantly share code, notes, and snippets.

@DrOctogon
DrOctogon / Update all git repos within a dir
Created July 16, 2013 17:19
Update all git repos within a dir
find . -name ".git" -type d -prune -execdir git pull \;
@DrOctogon
DrOctogon / daemonextension.py
Created July 9, 2013 16:47 — forked from gvangool/daemonextension.py
Daemonize django with supervisor
"""
Copyright (c) 2009, Sean Creeley
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
#!/usr/bin/env python
import os
import sys
import argparse
try:
from boto.ec2.connection import EC2Connection
except ImportError:
sys.stderr.write('Please install boto ( http://docs.pythonboto.org/en/latest/getting_started.html )\n')
sys.exit(1)
@DrOctogon
DrOctogon / git_autocomplete
Last active December 18, 2015 10:39
Autocomplete for Git - bash/zsh completion support for core Git.
#!bash
#
# bash/zsh completion support for core Git.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
# *) .git/remotes file names
# *) git 'subcommands'