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 | |
PHP="/usr/bin/php" | |
PWD=`pwd` | |
SYNTAXCHECK="/usr/bin/php -l" | |
GIT_ROOT=`pwd`/`git rev-parse --show-cdup` | |
MODIFIED_FILES=`git diff-index --cached HEAD | awk '{print $6}'` | |
ERRORS="" | |
for f in $MODIFIED_FILES;do |
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/zsh | |
USER='yalab' | |
SOURCE_HOST='YOUR GLOBAL IP ADDRESS' | |
SOURCE_PORT=8888 | |
DEST_HOST='DESTINATION HOST IP ADDRESS' | |
DEST_PORT=22 | |
SSH_KEY='/home/yalab/.ssh/id_rsa' | |
sudo kill `ps ax | grep 'ssh -N'| awk '{print $1}'` |
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
# stderr_to_stdout do | |
# warn("warning message") | |
# end | |
module Kernel | |
def stderr_to_stdout | |
old_std_err = STDERR.clone | |
STDERR.reopen(STDOUT) | |
yield | |
ensure |
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/bash | |
HEROKU="/home/yalab/.rvm/gems/ruby-1.9.3-p0/bin/heroku" | |
BACKUP_DIR="$HOME/.backup/mongohq" | |
if [ ! -d $BACKUP_DIR ];then | |
mkdir -p $BACKUP_DIR | |
fi | |
for APP in `$HEROKU list`;do | |
MONGOHQ_URL=`heroku config --app $APP | grep MONGOHQ_URL | awk '{print $3}'` |
NewerOlder