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/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
#!/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
// 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 | |
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
#!/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 | |
### BEGIN INIT INFO | |
# Provides: example_app | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the example_app app server | |
# Description: starts the example_app app server |
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
set :application, "example_app" | |
set :domain, "example-app.com" | |
## IMPORTANT: "true" prevents the server from booting properly | |
## This line is sometimes recommended in other Capistrano configurations, | |
## but do not use it for GlassFish. | |
# default_run_options[:pty] = true | |
set :scm, :git | |
set :repository, "[email protected]:paulrosania/example_app.git" |
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 | |
### BEGIN INIT INFO | |
# Provides: [app] | |
# Required-Start: $local_fs $remote_fs $network $syslog $nginx $mysql | |
# Required-Stop: $local_fs $remote_fs $network $syslog $nginx $mysql | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the [app] app server | |
# Description: starts the [app] app server |
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 | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |