This file contains 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 | |
# Download a copy of the jruby-complete jar [here](http://www.jruby.org/download), | |
# and pass it as the first parameter to the script. | |
JRUBY="$1" | |
JAVA="java" | |
# Install compass / sass gems. | |
$JAVA -jar "$JRUBY" -S gem install compass -i ./tmp/gems | |
$JAVA -jar "$JRUBY" -S gem install --version '~> 0.9' rb-inotify -i ./tmp/gems |
This file contains 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
alias gitrm='git ls-files -d | xargs git rm' |
This file contains 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 | |
FILE=$1 | |
SEPARATOR="#" | |
if [ ! -z $2 ]; then | |
FILE=$2 | |
SEPARATOR=$1 | |
fi | |
cat "$FILE" | grep -v -P "^\s*${SEPARATOR}" | grep -v -P "^\s*$" |
This file contains 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
#include <unistd.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
char* shell = getenv("SHELL"); | |
if( shell == NULL ) | |
shell = "bash"; | |
char* param[2]; |
This file contains 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 | |
if [ -z $1 ]; then | |
echo "Usage: $0 project-location" | |
exit 1 | |
fi | |
if [ ! -d $1 ]; then | |
echo "Could not find your project" | |
exit 2 |
This file contains 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 | |
HOST=$1 | |
PORT=$2 | |
RUN=true | |
SOCK=`mktemp -t xenvnc.$HOST.$PORT.XXX` | |
rm $SOCK | |
ssh $HOST -f -q -S $SOCK -L $PORT:localhost:$PORT sleep 1d |
This file contains 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 | |
################################################## | |
# # | |
# This script generates a sitemap from an # | |
# existing website by crawling each page # | |
# accessible to the outside world. # | |
# # | |
# Author: Jorgen Evens <jorgen@evens.eu> # | |
# License: New BSD License # |
This file contains 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>fileTypes</key> | |
<array> | |
<string>ang.tpl</string> | |
<string>ang.html</string> | |
<string>html</string> | |
<string>htm</string> |
This file contains 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 | |
TABLE="$1" | |
shift | |
db2 connect to dbarch | |
db2 +c "alter table $TABLE activate not logged initially" | |
db2 +c "$@" | |
db2 commit |
This file contains 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 | |
ME=`whoami` | |
SRC="project" | |
if [ -z "$1" ]; then | |
TABLES="table1 table2" | |
else | |
TABLES=$@ | |
fi | |
copy() { |
OlderNewer