Skip to content

Instantly share code, notes, and snippets.

Benji Fisher benjifisher

  • Isovera
  • Boston area
Block or report user

Report or block benjifisher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
benjifisher /
Created Dec 17, 2015
Update a Drupal extension (module or theme) and commit to git with this shell script.
echo Update a Drupal extension and commit the result to git.
echo Warning: alpha version. Assumes you are in sites/all/modules/contrib or similar.
read -e -p 'Which extension? ' EXT
if [ -z "$DRUSH_ALIAS" ]; then
read -e -p 'Site alias (include "@"): ' ALIAS
echo "Site alias: $ALIAS"
benjifisher / vdebug.vim
Created May 15, 2015
A bit of Vdebug configuration.
View vdebug.vim
" Configuration for the Vdebug interface to Xdebug (and DBGp) debugger.
" See :help Vdebug and
if !exists('g:vdebug_options')
let g:vdebug_options = {}
if !exists('g:vdebug_options.path_maps')
let g:vdebug_options.path_maps = {}
let g:vdebug_options['path_maps']['/var/www/drupal'] = '/Users/bfisher/Sites/drupal-7.32/'
benjifisher / ansible.snippets
Created Nov 16, 2014
Work in progress: Ansible snippets for use with vim SnipMate or Ultisnips plugins.
View ansible.snippets
snippet azure
benjifisher / find_commit.php
Created Nov 6, 2013
This php command-line script will do a binary search to find the first git commit that breaks your patch. It will give simple usage instructions if you invoke it without arguments. I wrote this script to help in re-rolling patches for Drupal. I posted the original version as a comment on . The script makes a reaso…
View find_commit.php
#!/usr/bin/env php
// Get the arguments. If there are not two, then print usage info.
if (count($argv) != 3) {
$scriptname = basename($argv[0]);
print("Usage: $scriptname <date> <patchfile>" . PHP_EOL);
print('where <date> is any date understood by git' . PHP_EOL);
print('and <patchfile> applied cleanly on <date>, not today.' . PHP_EOL);
print("Example: $scriptname 2013/05/17 foo.patch" . PHP_EOL);
You can’t perform that action at this time.