Skip to content

Instantly share code, notes, and snippets.

@pgib
pgib / delete-branch.sh
Created April 17, 2012 16:13
Delete multiple local/remote git branches. (Put this in your shell's profile and smoke it!)
delete-branch()
{
for i in `echo $*`; do
echo "Deleting local and remote branch $i..."
git push origin :$i
git branch -D $i
done
}
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by mosh configure 1.1.3a, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
@pgib
pgib / gist:2243586
Created March 29, 2012 20:40
shell function to open pull request
essentials-push()
{
if [ $# -lt 1 ]; then
echo "Usage: $0 '<pull request heading>'"
return
fi
open `hub pull-request "$1" -b coverall:essentials`
}
@pgib
pgib / font-awesome.css.less.erb
Created March 9, 2012 20:34
My font-awesome fix...
@font-face {
font-family: 'FontAwesome';
src: url('<%= asset_path('fontawesome-webfont.eot') %>');
src: url('<%= asset_path('fontawesome-webfont.eot') %>?#iefix') format('embedded-opentype'),
url('<%= asset_path('fontawesome-webfont.woff') %>') format('woff'),
url('<%= asset_path('fontawesome-webfont.ttf') %>') format('truetype'),
url('<%= asset_path('fontawesome-webfont.svgz') %>#FontAwesomeRegular') format('svg'),
url('<%= asset_path('fontawesome-webfont.svg') %>#FontAwesomeRegular') format('svg');
font-weight: normal;
font-style: normal;
@pgib
pgib / canadian_tax.php
Created February 25, 2012 00:08
Canadian tax
switch ($province)
{
case 'AB':
case 'MB':
case 'NT':
case 'NU':
case 'PE':
case 'QC':
case 'SK':
case 'YT':
@pgib
pgib / .zshrc
Created February 20, 2012 19:01
My .zshrc for @eddanger
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle :compinstall filename '/Users/patrick/.zshrc'
autoload -Uz compinit
compinit
nav: (e) ->
target = $(e.target)
target.siblings().removeClass("selected");
target.addClass("selected");
@pgib
pgib / CoffeeScript.plist
Created December 6, 2011 21:49 — forked from pmuellr/gist:1004413
BBEdit Language Module for CoffeeScript
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
@pgib
pgib / generate_yaml.rb
Created November 14, 2011 23:32
YAML can be hard to write. Instead, go the other way!
require 'yaml'
videos = [
{
:title => "test 1",
:url => "http://test1/"
},
{
diff --git a/Makefile.in b/Makefile.in
index db683ac..14ba5db 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -79,7 +79,7 @@ install_bin: .version screen
-if [ -f $(DESTDIR)$(bindir)/screen ] && [ ! -f $(DESTDIR)$(bindir)/screen.old ]; then mv $(DESTDIR)$(bindir)/screen $(DESTDIR)$(bindir)/screen.old; fi
rm -f $(DESTDIR)$(bindir)/screen
(cd $(DESTDIR)$(bindir) && ln -sf $(SCREEN) screen)
- cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
+ cp $(srcdir)/utf8encodings/?? $(DSTROOT)$(SCREENENCODINGS)