Skip to content

Instantly share code, notes, and snippets.


Richard George parsingphase

View GitHub Profile
parsingphase / checkSismoHooks.php
Last active Aug 29, 2015
Script to replace all the post-commit git hooks required by a sismo setup
View checkSismoHooks.php
* Created by PhpStorm.
* User: parsingphase
* Date: 19/09/14
* Time: 09:29
namespace Sismo;

Keybase proof

I hereby claim:

  • I am parsingphase on github.
  • I am parsingphase ( on keybase.
  • I have a public key whose fingerprint is 3AFF 7E72 CB22 4B5B FC6F DD2F 1D90 3D3C 598B 7770

To claim this, I am signing this object:

parsingphase / gist:a1f763e5e654d03789d0
Created Feb 5, 2015
Eternal hangup from promises.
View gist:a1f763e5e654d03789d0
* Created by richardg on 05/02/2015.
// ref:
// a promise calls its passed-in resolve() function when it's done ?
//var Promise = require("nodegit-promise");
var Promise = require("promise");
View clusterTests.js
var cluster = require('cluster');
var isMaster = cluster.isMaster;
console.log('isMaster? ' + isMaster);
if (isMaster) {
// Listen for dying workers
parsingphase /
Created May 20, 2015
Check for screen on login (call in .bashrc)
if [ ${TERM^^} = 'SCREEN' ]; then
echo 'Running under screen. CTRL-A ? for help'
echo 'Not in a screen; the following are available:'
screen -ls
parsingphase / sshd_config
Last active Aug 29, 2015
Fix key negotiation issue from PHPStorm on mac
View sshd_config
parsingphase / dockbounce
Created Oct 13, 2015
Turn OSX dock bouncing on or off
View dockbounce
param=$(echo "$param" | tr '[:lower:]' '[:upper:]')
case $param in
parsingphase / heartbreaker.css
Last active Nov 4, 2015
Custom CSS (user stylesheet) to set your own emoji for twitter's "like" icon. Replace "content" emoji with your own choice.
View heartbreaker.css
/* Developed from
Copy / paste your own emojis into the content: lines below
Safari: Preferences -> advanced -> Style Sheet
Other browsers:
.HeartAnimationContainer {
visibility: hidden;
.HeartAnimationContainer:after {
parsingphase / ElCapitanPeclInstallMongo.txt
Created Nov 10, 2015
Install mongo pecl extension on OSX. Pointer rather than step-by-step
View ElCapitanPeclInstallMongo.txt
Help from:
Install MAMP:
export PATH=/Applications/MAMP/bin/php/php5.6.10/bin:$PATH
PHP src from - get same version as MAMP uses!
parsingphase / .bash_profile
Created Feb 2, 2016
Bash profile with switching functions to use multiple homebrew versions of PHP.
View .bash_profile
export PS1="\u@rgmac:\w $ "
export PATH=/Users/richardg/Library/Python/2.7/bin/:$PATH
function setPhp56 {
export PATH=/usr/local/Cellar/php56/5.6.17/bin:$PATH_DIST_PHP
php --version
function setPhp7 {
You can’t perform that action at this time.