Skip to content

Instantly share code, notes, and snippets.

View markdrake's full-sized avatar

Marco Patiño markdrake

View GitHub Profile
@markdrake
markdrake / grunt notifier task.js
Last active August 29, 2015 14:02
Grunt notifier task, useful to interact with notify-send in linux and growl in mac os x after grunt is run.
var exec = require('child_process').exec;
var notify = function(message) {
exec('notify-send "' + message + '"');
};
@markdrake
markdrake / karma notifier.sh
Last active August 29, 2015 14:02
This code allows you to run karma and notify every time the console gets an update. This integrates nicely when running vagrant and growl notifications integrated.
karma start karma.conf.js | tee >( xargs -I {} notify-send {})

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@markdrake
markdrake / Ignore modified files on git.bash
Last active August 29, 2015 13:56
Ignore changed files to being listed as modified in git. This is really useful if you have to modify a configuration locally but don't want to mess with remote configurations where you could potentially forget and push.
# To ignore a file or dir
git update-index --assume-unchanged <file>
#To revert that ignorance use the following command:
git update-index --no-assume-unchanged <file>