Skip to content

Instantly share code, notes, and snippets.

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 January 17, 2014 20:43
Remove the first data character and push a string value onto the end of a data representation while preserving its original presentation.
<?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 October 24, 2012 22:40
Find Git repositories and run `git pull` on each of them.
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 January 1, 2012 01:11
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
#!/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