This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function StripTrailingWhitespace() | |
| :%s/\s\+$// | |
| echo "Trailing white space stripped." | |
| endfunction | |
| command Stripwp :call StripTrailingWhitespace() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>net.lighttpd.spawn-fcgi</string> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| <key>KeepAlive</key> | |
| <true/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.coverallcrew.firewall</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>sh</string> | |
| <string>-c</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults write com.barebones.bbedit Color:Background -string "rgb(0,0,0)" | |
| defaults write com.barebones.bbedit Color:CTagsIdentifier -string "rgb(57825,39937,11422)" | |
| defaults write com.barebones.bbedit Color:ColorAttributesSeparately -string 1 | |
| defaults write com.barebones.bbedit Color:Comment -string "rgb(21845,21845,21845)" | |
| defaults write com.barebones.bbedit Color:Comment:Ruby -string "rgb(34992,34992,34992)" | |
| defaults write com.barebones.bbedit Color:Foreground -string "rgb(65535,65535,65535)" | |
| defaults write com.barebones.bbedit Color:Foreground:CSS -string "rgb(56342,56342,56342)" | |
| defaults write com.barebones.bbedit Color:GuideContrast -string 7 | |
| defaults write com.barebones.bbedit Color:HTMLAnchor -string "rgb(43690,0,0)" | |
| defaults write com.barebones.bbedit Color:HTMLAttributeName -string "rgb(57528,45076,5799)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ brew install imagemagick | |
| Also installing dependencies: jpeg, little-cms | |
| ==> Downloading http://www.ijg.org/files/jpegsrc.v8c.tar.gz | |
| File already downloaded and cached to /Users/patrick/Library/Caches/Homebrew | |
| ==> ./configure --prefix=/usr/local/Cellar/jpeg/8c --disable-dependency-tracking | |
| ==> make install | |
| /usr/local/Cellar/jpeg/8c: 17 files, 1.4M, built in 11 seconds | |
| ==> Downloading http://www.littlecms.com/1/lcms-1.19.tar.gz | |
| File already downloaded and cached to /Users/patrick/Library/Caches/Homebrew |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ brew doctor | |
| Unbrewed dylibs were found in /usr/local/lib. | |
| If you didn't put them there on purpose they could cause problems when | |
| building Homebrew formulae, and may need to be deleted. | |
| Unexpected dylibs: | |
| /usr/local/lib/libdvdcss.2.0.7.dylib | |
| /usr/local/lib/libdvdcss.2.dylib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a new git branch | |
| function create-branch | |
| { | |
| local branchtype=$1 | |
| local name=$2 | |
| local issue=$3 | |
| date=`date +%Y%m%d` | |
| if [ $# -lt 2 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- <div class="profile"> | |
| <div class="name">First Ad-Hoc</div> | |
| <p class="description">This adds some stuff to your device.</p> | |
| <a href="http://apple.com"><div class="button"><canvas></canvas></div></a> | |
| <p class="getJoin">Get</p> | |
| </div> | |
| <div class="profile"> | |
| <div class="name">Second Ad-Hoc</div> | |
| <p class="description">This adds some different stuff to your device.</p> | |
| <a href="http://apple.com"><div class="button"><canvas></canvas></div></a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class Nginx < Formula | |
| homepage 'http://nginx.org/' | |
| url 'http://nginx.org/download/nginx-1.2.6.tar.gz' | |
| sha1 '432059b668e3f018eab61f99c7cc727db88464e8' | |
| devel do | |
| url 'http://nginx.org/download/nginx-1.3.10.tar.gz' | |
| sha1 '11cd44bc0479594fd2e5f7a65bf8f2c36ad5ec1e' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| archive_github_repo() | |
| { | |
| if [ ! -d .git ]; then | |
| echo "You must run this from within the root of your git repo." | |
| exit 1 | |
| fi | |
| pwd=`pwd` | |
| repo_url=`git config --local --get remote.origin.url` | |
| repo_name=`echo $repo_url | awk -F / '{print $2}' | sed -e s/.git//` |