Skip to content

Instantly share code, notes, and snippets.

View fenomenog4's full-sized avatar

Pedro Jiménez Díaz fenomenog4

  • Granada
View GitHub Profile
@fenomenog4
fenomenog4 / git-branches-by-commit-date.sh
Created February 14, 2017 07:44 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@fenomenog4
fenomenog4 / gunicorn
Created November 29, 2011 11:50 — forked from suda/gunicorn
Gunicorn init.d script (debian/ubuntu)
#!/bin/sh
### BEGIN INIT INFO
# Provides: gunicorn
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the gunicorn server
# Description: starts gunicorn using start-stop-daemon