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 | |
# | |
# A git hook script to find and fix trailing whitespace | |
# in your commits. Bypass it with the --no-verify option | |
# to git-commit | |
# | |
# found on http://snipplr.com/view/28523/git-precommit-hook-to-fix-trailing-whitespace/ | |
# | |
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then |
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
#!/usr/bin/ruby | |
# REQUIRES: | |
# * rooted android, as otherwise you can't read the applications private data | |
# * to display the qr code "qrencode" (http://fukuchi.org/works/qrencode/) | |
# and "display" from ImageMagick | |
# This script "decrypts" the token from the internal state of the | |
# Battle.net Mobile Authenticator on android application, converting | |
# it into an "otpauth" url (https://code.google.com/p/google-authenticator/wiki/KeyUriFormat) |
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
[ | |
{ | |
"entity": "project-owners-527096463570", | |
"projectTeam": { | |
"projectNumber": "527096463570", | |
"team": "owners" | |
}, | |
"role": "OWNER" | |
}, | |
{ |
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 phpx="php -d xdebug.remote_enable=1 -d xdebug.idekey=PHPSTORM -d xdebug.remote_autostart=1 -d xdebug.remote_connect_back=1" | |
alias phpp="php -d xdebug.profiler_enable=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
#!/bin/sh | |
brew install bison recode aspell gmp autoconf | |
ln -s /usr/local/Cellar/bison/3.0.4/bin/bison /usr/local/bin/bison | |
git clone https://github.com/php/php-src | |
cd php-src | |
./buildconf | |
./configure --prefix=$HOME/tmp/usr --with-config-file-path=$HOME/tmp/usr/etc --enable-mbstring --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-curl --with-mcrypt --with-iconv --with-gmp --with-pspell --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-jis-conv --with-openssl --with-mysql=/usr/local/bin/mysql_config --with-pdo-mysql=/usr/local/bin/mysql_config --with-gettext=/usr/local/opt/gettext --with-zlib=/usr --with-bz2=/usr --with-recode=/usr --with-mysqli=/usr/local/bin/mysql_confi | |
make | |
make inst |
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 | |
# make sure you switch to php70 | |
brew unlink php56 && brew link php70 | |
# checkout and build | |
git clone [email protected]:derickr/xdebug php7-xdebug | |
cd php7-xdebug | |
phpize | |
./configure |
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
#install datastax php-driver (and cpp-driver) on osx | |
brew install https://raw.githubusercontent.com/datastax/cpp-driver/master/packaging/homebrew/cassandra-cpp-driver.rb | |
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 | |
# make sure you switch to php70 | |
brew unlink php56 && brew link php70 | |
# checkout and build | |
git clone [email protected]:krakjoe/apcu | |
cd apcu | |
git checkout seven | |
make clean |
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
/** METHOD ONE **/ | |
/** DOES NOT WORK WITH instanceof **/ | |
var MyClass = (function () | |
{ | |
/* STATIC */ | |
// private static | |
var _privateStatic = 'static private initial'; | |
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 | |
if [ ! -f vendor/phpunit/phpunit/phpunit ]; then | |
echo 'No PHPUnit installed in vendor directory' | |
exit 1 | |
fi | |
echo 'Executing `phpunit '$@'`...' | |
vendor/phpunit/phpunit/phpunit $@ |
OlderNewer