Skip to content

Instantly share code, notes, and snippets.

@quodlibetor
quodlibetor / .gitconfig
Created August 13, 2014 15:26
git config
[user]
name =
email =
[alias]
st = status
sb = status --short --branch
s = status --short
ci = commit
co = checkout
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
@quodlibetor
quodlibetor / git-svndiff
Created July 31, 2014 17:06
git-svndiff
#!/bin/bash
#
# git-svn-diff
# Generate an SVN-compatible diff against the tip of the tracking branch
# for subgit this expects that you have added the following line to your
# .git/config, and to have run git-fetch recently:
#
# fetch = +refs/svn/map:refs/notes/commits
#
@quodlibetor
quodlibetor / pass.py
Created June 25, 2012 00:38
A simple password generator that works on *nix, and generates passwords out of real words.
#!/usr/bin/env python
# author: Brandon W Maister
# This file is in the public domain
"""Create passwords using random words
Long passwords are better than short, a long (20+ char) password made of
whole words is better than a short one, unless the attacker knows that you're
using whole words.
@quodlibetor
quodlibetor / org-recent.el
Created April 19, 2012 18:44
a scratch of a way to find the most-recent clocked in time in org-mode
(defun bwm/org-find-recent-clocks (buf)
"get the most recent clock-in or out time and position
returns a list that looks like (time position)"
(let (recent
this-un
match)
(with-current-buffer buf
(save-excursion
(goto-char (point-min))