This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet azure | |
azure: | |
name=${1} | |
location=${2} | |
subscription_id=${3} | |
management_cert_path=${4} | |
storage_account=${5} | |
image=${6} | |
role_size=${7} | |
endpoints=${8} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Configuration for the Vdebug interface to Xdebug (and DBGp) debugger. | |
" See :help Vdebug and https://github.com/joonty/vdebug. | |
if !exists('g:vdebug_options') | |
let g:vdebug_options = {} | |
endif | |
if !exists('g:vdebug_options.path_maps') | |
let g:vdebug_options.path_maps = {} | |
endif | |
let g:vdebug_options['path_maps']['/var/www/drupal'] = '/Users/bfisher/Sites/drupal-7.32/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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 | |
else | |
ALIAS=$DRUSH_ALIAS | |
echo "Site alias: $ALIAS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lando list --format json | jq 'map_values(.[0].status)' |