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
#!/bin/sh | |
# setup-xp.sh - Install and configure IE Application Compatibility images in VirtualBox | |
# | |
# Some parts from: http://www.peculier.com/blog/create-ie-vbox.html | |
## Prerequisites: | |
# | |
# - VirtualBox 4.0+ | |
# - unrar (`brew install unrar`) | |
# - 7zip (`brew install 7zip`) |
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
#!/bin/sh | |
function usage { | |
echo "usage: $0 source_file field" | |
exit 1 | |
} | |
if [ ! $# -eq 2 ]; then | |
usage | |
elif [ ! -f $1 ]; 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
// Compress further via advpng on level 1 – 4. | |
// (level can normally range from 1 – 7) | |
levelStr = [NSString stringWithFormat:@"-z%d", (level < 5 ? 1 : level - 3)]; |
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
#!/bin/sh | |
## Packages: | |
# brew install pngcrush | |
# brew install optipng | |
# brew install advancemame | |
# brew install https://raw.github.com/adamv/homebrew-alt/23f9084410476da1fcaf946f24f4dde47fe888ea/non-free/pngout.rb | |
function usage { | |
echo "Usage: $0 infile outfile" |
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
#!/bin/sh | |
## Packages: | |
# brew install pngcrush | |
# brew install optipng | |
# brew install advancecomp | |
# brew install https://raw.github.com/adamv/homebrew-alt/23f9084410476da1fcaf946f24f4dde47fe888ea/non-free/pngout.rb | |
function usage { | |
echo "Usage: $0 infile outfile" |
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
code = %q{Nputs "code = %q{#{code}}"NNcode.chars.each do |c|N if c > 'M' && c < 'O'N putsN elseN print cN endNendNNputs} | |
puts "code = %q{#{code}}" | |
code.chars.each do |c| | |
if c > 'M' && c < 'O' | |
puts | |
else | |
print c | |
end |
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
#!/bin/bash | |
# This script will open all files from a git diff or a git show in vim. | |
# My bash skills are a bit primitive so this can probably be done more intelligently | |
# Usage: | |
# gitopen -- opens all added files that have changed since HEAD | |
# gitopen diff HEAD -- these are the default parameters | |
# gitopen diff master -- opens files that have changed from master |
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
#!/bin/sh | |
# setup-xp.sh - Install and configure IE Application Compatibility images in VirtualBox | |
# | |
# Some parts from: http://www.peculier.com/blog/create-ie-vbox.html | |
## Prerequisites: | |
# | |
# - VirtualBox 4.0+ | |
# - unrar (`brew install unrar`) | |
# - 7zip (`brew install 7zip`) |
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
--- | |
BUNDLE_DISABLE_SHARED_GEMS: "1" |
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
--- | |
BUNDLE_PATH: vendor/bundle | |
BUNDLE_BUILD__MYSQL: --with-mysql-config=/usr/local/mysql/bin/mysql_config |