Skip to content

Instantly share code, notes, and snippets.

View jezdez's full-sized avatar
🚴
💨

Jannis Leidel jezdez

🚴
💨
View GitHub Profile
@jbenet
jbenet / simple-git-branching-model.md
Last active June 3, 2026 23:26
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@bmispelon
bmispelon / map.geojson
Last active December 22, 2015 21:09 — forked from anonymous/map.geojson
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mythmon
mythmon / james.py
Last active December 20, 2015 23:58
james.py is a way of calling Chief from the command line.
#!/usr/bin/env python
"""
james.py - Chief CLI.
USAGE: james.py ENV REF
ENV - Environment defined in the config file to deploy to.
REF - A git reference (like a SHA) to deploy.
Config: james.ini in the current directory should be an ini file with
one section per environment. Each environment should have a
#!/usr/bin/env python
"""
USAGE:
$ git branch | branch-info.py
By peterbe
"""
import sys
@idan
idan / autoenv.fish
Last active February 8, 2016 15:14
My fish config. I was using oh-my-fish but it seems to introduce a bunch of bugginess.
if not set -q AUTOENVFISH_FILE
set -g AUTOENVFISH_FILE ".env.fish"
end
# Automatic env loading
function _autoenvfish --on-variable PWD
if status --is-command-substitution # doesn't work with 'or', inexplicably
return
end

In Memory of Malcolm

Last night, I received the news that Malcolm Tredinnick had passed away. I was at the hotel bar, concluding the first night of sprints at PyCon 2013. It took everything I had not to spontaneously start crying on the spot.

Malcolm was a friend, a mentor, a valued community mentor, a leader and a wonderful human being. He gave freely of himself to so very many people & causes. He made himself available to others, even when he was so busy he could

@thedrow
thedrow / class_and_module_settings.py
Last active December 15, 2015 01:29
django-configurations implementation in 5 minutes. This loads settings from a class instead of a module. To use it just clone https://github.com/thedrow/django/ and set the DJANGO_CONFIGURATION environment variable to whichever object you'd like to use and import this settings module instead of django.conf.settings. The class shouldn't inherit f…
"""
Demonstrates loading settings from a module and overriding it by a class
"""
import os
from django.utils import importlib
from django.conf.default import *
class ConfigurationLoader(SettingsSourcesLoader):
@ubershmekel
ubershmekel / distribute_and_pip.py
Created December 14, 2012 16:04 — forked from anonymous/gist:4286446
One-click pip setup for windows
"""
This gist is a one-click pip setup for windows:
1. installs distribute if needed
2. installs pip
3. (On windows) sets the path environment variable so "pip" is always runnable from cmd.
Tested on Windows 7 with python2.7
"""
#!/bin/bash
export LEEROY_URL="https://leeroybot.herokuapp.com/"
LEEROY_RERUN="https://raw.github.com/lonnen/leeroy-rerun/master/leeroy-rerun.py"
# Usage
[[ -z $1 ]] || [[ -z $2 ]] && {
echo "Rerun a Leeroy job for a Mozilla project."
echo -e " $ $(basename $0) PROJECT PULLNUM"
exit 1
@tarekziade
tarekziade / verify.py
Created November 19, 2012 14:23
Verifying a gpg signed package from PyPI
# you need to install python-gpgme
import StringIO
import urllib
import gpgme
import shutil, tempfile
import os
from contextlib import closing, contextmanager
tarball = 'http://pypi.python.org/packages/source/s/signtest/signtest-1.0.tar.gz'