Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am helior on github.
  • I am helior (https://keybase.io/helior) on keybase.
  • I have a public key ASBoJCvp70F1TePch1FmvrCwIU2U3JPuuQAbGG4bU-ujYAo

To claim this, I am signing this object:

@helior
helior / push_char.php
Created Jan 17, 2014
Remove the first data character and push a string value onto the end of a data representation while preserving its original presentation.
View push_char.php
<?php
/**
* Remove the first data character and push a string value onto the
* end of a data representation while preserving its original
* presentation.
*
* @param string $char A string value that will be concatenated
* to the data series
* @param string $string A string representation of data in which
@helior
helior / gist:3949408
Created Oct 24, 2012
Find Git repositories and run `git pull` on each of them.
View gist:3949408
find . -type d -name .git | xargs -n 1 dirname | while read line; do echo $line && cd $line && git pull && cd ..; done
@helior
helior / rebuild.sh
Created Jan 1, 2012
Rebuild script for Drupal makefiles – detects override.make file and runs that instead. override.make should: be ignored by Git; include original makefile; reference additional/alternative/null repositories and/or permissions (e.g. helior@git.drupal.org:p
View rebuild.sh
#!/bin/bash
OVERRIDEMAKEFILE="override.make"
COMMONMAKEFILE="$(basename `pwd`).make"
# If the override make file exists, use it...
if [ -e $OVERRIDEMAKEFILE ]; then
MAKEFILE=$OVERRIDEMAKEFILE
# ... otherwise use the common makefile