Skip to content

Instantly share code, notes, and snippets.

View chrismetcalf's full-sized avatar

Chris Metcalf chrismetcalf

View GitHub Profile
Compiling Do.Interface.Linux.Docky.dll...
./src/Docky.Interface/DockArea_Rendering.cs(57,26): error CS0103: The name `<ActiveIconChangeTime>k__BackingField' does not exist in the current context
./src/Docky.Interface/DockArea_Rendering.cs(57,26): error CS0103: The name `<ActiveIconChangeTime>k__BackingField' does not exist in the current context
./src/Docky.Interface/DockArea_Rendering.cs(59,36): error CS0103: The name `<RenderData>k__BackingField' does not exist in the current context
./src/Docky.Interface/DockArea_Rendering.cs(59,36): error CS0103: The name `<RenderData>k__BackingField' does not exist in the current context
./src/Docky.Interface/DockArea_Rendering.cs(61,22): error CS0103: The name `<PainterOverlayVisible>k__BackingField' does not exist in the current context
./src/Docky.Interface/DockArea_Rendering.cs(61,22): error CS0103: The name `<PainterOverlayVisible>k__BackingField' does not exist in the current context
./src/Docky.Interface/DockArea_DragAndDrop.cs(64,27): error CS0103: The nam
# Get sha for a git subtree
> git ls-tree branchname dir
# One-liner to bulk-reassign Pivotal Tracker stories
curl -H "X-TrackerToken: $PIVOTAL_TOKEN" -X GET "http://www.pivotaltracker.com/services/v2/projects/$PROJECT_ID/stories?filter=owner:$OLD_OWNER" | \
egrep '^ <id type' | perl -ne 'm/>(\d+)</; print "$1\n";' | \
while read id; do curl -H "X-TrackerToken: $PIVOTAL_TOKEN" -H "Content-type: application/xml" \
-d "<story><owned_by>$NEW_OWNER</owned_by></story>" -X PUT \
"http://www.pivotaltracker.com/services/v2/projects/$PROJECT_ID/stories/$id"; done
# One-liner to see who uses the Seven Dirty Words the most in their code
# http://en.wikipedia.org/wiki/Seven_dirty_words
find . | grep -v ".git" | while read filename; do git blame $filename 2> /dev/null | \
egrep -i '(shit|piss|fuck|cunt|cocksucker|motherfucker|tits)' | \
perl -ne 'm|\w+\s+\(([\w.-_@ ]+) 200|; print "$1\n";'; done | sort | uniq -c
" Chris Metcalf (chris@chrismetcalf.net)
" gvim config file
"
" Get rid of "chrome"
set guioptions=cmR
" set the X11 font to use. See 'man xlsfonts' on unix/linux
set guifont=ProFontWindows:h12.00
" Hide the mouse pointer while typing
" Tab config
set smarttab
set shiftwidth=2
set autoindent
set expandtab
" Wrap while searching for strings....
set wrapscan
" Wrap at whitespace instead of the middle of a word.
From a4c84d99c20989f19d5515202170eb03c03c796e Mon Sep 17 00:00:00 2001
From: Sam <REDACTED> <REDACTED@blist.com>
Date: Fri, 8 Jan 2010 18:17:06 -0600
Subject: [PATCH] SPARTA: Fixing site-map crashes
Sam The sitemaps bug
| |
v v
o o
krezel@arcturus ~ %> tree -a -L 1 .homedir
.homedir
|-- .MacOSX
|-- .flashbake
|-- .git
|-- .gitconfig
|-- .gitignore
|-- .gitmodules
|-- .gvimrc
|-- .inputrc
#!/bin/sh
PATH=$HOME/.homedir/bin:$PATH
pushd $HOME
echo "Setting up .ssh directory"
if [[ ! -d .ssh ]]; then
echo ".ssh doesn't exist yet, creating..."
mkdir .ssh
#!/usr/bin/perl
# Uses symlinks to merge the files contained in a set of vcs
# checkouts to into a single directory. Keeps track of when files are
# removed from the merged directories and removes the symlinks.
#
# Only merges files that match the specified pattern.
#
# Note that the directories given to merge should be paths that will work
# for symlink targets from the destination directory (so either full paths,
# or they should be right inside the destination directory).