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 | |
set -e | |
# Generates php-fpm and php-cli packages and php extension packages | |
# for use with the heroku modular buildpack | |
# https://github.com/JorgenEvens/heroku-modular-buildpack | |
### Configuration ### | |
PHP_VERSION="5.5.18" |
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
module.exports = function(grunt) { | |
var pkg = grunt.file.readJSON('package.json'); | |
grunt.initConfig({ | |
pkg: pkg, | |
/* Deployment */ | |
'ftp-deploy': { | |
build: { |
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 | |
REMOTE="tunnel-host -p 9099" | |
REMOTE_NET="192.168.1.0/24" | |
TUN=5 | |
IF="tun$TUN" | |
SSH_OPT="-c arcfour256 -o Protocol=2 -o ServerAliveCountMax=2 -o ServerAliveInterval=5 -o ConnectTimeout=5" | |
echo $SSH_OPT | |
sleep 15 # Wait for device bootup |
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() { |
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
<?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 | |
################################################## | |
# # | |
# 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
#!/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 | |
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
#include <unistd.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
char* shell = getenv("SHELL"); | |
if( shell == NULL ) | |
shell = "bash"; | |
char* param[2]; |