Skip to content

Instantly share code, notes, and snippets.

View mschenck's full-sized avatar

Michael Schenck mschenck

  • Pittsburgh, PA
  • 12:28 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mschenck on github.
  • I am mschenck (https://keybase.io/mschenck) on keybase.
  • I have a public key ASAI_2hV01gYA2psX_1156jUTmUO3pGxO9PWoDbOSrE6Ago

To claim this, I am signing this object:

' Copyright (c) 2007, Tony Ivanov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
@mschenck
mschenck / .git_profile
Created October 14, 2011 06:17
Git Shortcuts
# Add this to .profile or .bash_profile
#
# Or the cool way:
# cd ~/ && git clone git://gist.github.com/114160.git .githelper && echo "# Add me to your .profile or .bash_profile. Save the file, open a new terminal, and you'll have all of this." && echo "" && echo "source ~/.githelper/gistfile1.sh"
#
# - When inside a git working directory, modifies prompt to be (git)$wd[$branch]/
# - Adds a number of short hand aliases, ie pull instead of git pull, k instead of gitk
# - Adds one command calls for making new branches, deleting branches
# - Adds one command call for freebasing (fetch and rebase)
# - And a few other nuggets
@mschenck
mschenck / PURGE request drop for apache
Created January 21, 2011 17:27
Possible solution for dropping PURGE requests that make it to apache
RewriteEngine on
RewriteCond %{THE_REQUEST} ^PURGE
RewriteRule .* - [F]