Skip to content

Instantly share code, notes, and snippets.

View bicpi's full-sized avatar

Philipp Rieber bicpi

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1B6Y5hkUzypBosyRyLoxTwzKnpAgHebZXK https://explorer.blockstack.org/address/1B6Y5hkUzypBosyRyLoxTwzKnpAgHebZXK

Keybase proof

I hereby claim:

  • I am bicpi on github.
  • I am bicpi (https://keybase.io/bicpi) on keybase.
  • I have a public key whose fingerprint is 6E36 BA6F 91FC 22AD 91D0 69DC 703D 5F24 C9F6 6375

To claim this, I am signing this object:

@bicpi
bicpi / gist:f275a4e215b717011197cbae9ddcd23a
Created March 30, 2016 09:11
This shell function is a hack to run git commands silently, e.g. for usage within build scripts
quiet_git() {
stdout=$(tempfile)
stderr=$(tempfile)
if ! git "$@" </dev/null >$stdout 2>$stderr; then
cat $stderr >&2
rm -f $stdout $stderr
exit 1
fi
rm -f $stdout $stderr
}
@bicpi
bicpi / Gulpfile.js
Last active November 25, 2018 12:28
Run watcher for phpspec on file save with Gulp
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var notify = require('gulp-notify');
gulp.task('test', function() {
var options = { verbose: 'v', notify: true, clear: true, formatter: 'pretty' };
gulp.src('spec/**/*.php')
.pipe(phpspec('./bin/phpspec run', options))
.on('error', notify.onError({
title: 'Crap',