Skip to content

Instantly share code, notes, and snippets.

View demonbane's full-sized avatar

Alex Malinovich demonbane

View GitHub Profile
@demonbane
demonbane / workflow-build.py
Created August 26, 2018 01:49 — forked from deanishe/workflow-build.py
Build Alfred Workflows into .alfredworkflow (zip) files
#!/usr/bin/python
# encoding: utf-8
#
# Copyright (c) 2013 deanishe@deanishe.net.
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2013-11-01
#
@demonbane
demonbane / gist:942965
Created April 26, 2011 19:44 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
awk -F"/" '!/(>|master)/ {print $2}' |
xargs -L1 git push origin --delete
@demonbane
demonbane / Gemfile
Created April 1, 2010 21:39 — forked from atmos/Gemfile
source :gemcutter
group :runtime do
gem 'sinatra', '~>1.0.0'
gem 'rack', '~>1.0.0'
end
# vim:ft=ruby
function migrate rollback () {
if [ -z "$1" ]; then
rake db:"$0" RAILS_ENV=development && rake db:"$0" RAILS_ENV=test
else
rake db:"$0" RAILS_ENV="$1"
fi
}
[format]
pretty="format:%C(yellow)%h%Creset %C(magenta bold)%aN%Creset%C(blue) %ad%Creset %s"
[log]
date=short
[alias]
amend = commit -v --amend
addp = add --patch
axe = !sh -c 'git log -S"$0"'
@demonbane
demonbane / gist:93488
Created April 11, 2009 07:17 — forked from schacon/gist:1
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.