Skip to content

Instantly share code, notes, and snippets.

View polmuz's full-sized avatar

Pablo Mouzo polmuz

  • Valencia, Spain
View GitHub Profile
@polmuz
polmuz / build_relative_paths.py
Created February 11, 2016 18:25
Simple python function to build paths relative to the current file
# source http://code.tutsplus.com/articles/diving-into-django--net-2969
import os
def rel(*l):
"""
Create paths relative to this file
e.g.
rel('tmp', 'bla.txt') -> '<this file dir>/tmp/bla.txt'
git branch --merged origin/master | grep -v '\* master' | xargs -l1 git branch -d
anonymous
anonymous / delete-local-branches
Created December 13, 2012 14:36
Oneliners for deleting old merged branches
git branch --merged origin/master | grep -v '\* master' | xargs -l1 git branch -d