Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
@shrop
shrop / gist:1760522
Created February 7, 2012 16:22
Disable and uninstall content_access (doesn't seem to work for me)
/**
* Disable and uninstall the content_access module if installed
*/
function splashpad_general_feature_update_6100() {
if (module_exists('content_access')) {
// Disable content_access
module_disable('content_access');
// Uninstall content_access
drupal_uninstall_module('content_access');
// Rebuild node access
@shrop
shrop / gist:1978612
Created March 5, 2012 14:50
Aegir Up error when trying a second Aegir instance/project with a custom template
$ vagrant up
[hm] Importing base box 'debian-LAMP-6.0.4'...
[hm] Matching MAC address for NAT networking...
[hm] Clearing any previously set forwarded ports...
[hm] Fixed port collision for 22 => 2222. Now on port 2200.
[hm] Forwarding ports...
[hm] -- 22 => 2200 (adapter 1)
[hm] Creating shared folders metadata...
[hm] Clearing any previously set network interfaces...
[hm] Preparing network interfaces based on configuration...
@shrop
shrop / Reset Drupal Password for uid 1
Created March 12, 2012 12:48
Reset Drupal Password for uid 1
UPDATE users SET pass = MD5('1Password')
@shrop
shrop / gist:2320820
Created April 6, 2012 15:33
Print Session variable with Drupal devel print_r
// Print SESSION variable wtih devel print_r
if (module_exists('devel')) {
dprint_r($_SESSION);
}
@shrop
shrop / gist:2398477
Created April 16, 2012 12:35
Send array to watchdog table in Drupal
watchdog('debug', '<pre>'. print_r($array, TRUE) .'</pre>');
@shrop
shrop / gist:2405991
Created April 17, 2012 13:33
Remove homebrew formula dependencies
brew rm $(join <(brew leaves) <(brew deps FORMULA))
@shrop
shrop / gist:2632165
Created May 8, 2012 02:41
Remove svn folders
find . -name ".svn" -exec rm -rf {} \;
@shrop
shrop / order.txt
Created June 12, 2012 15:10 — forked from bigfleet/order.txt
Jimmy John's order
http://www.jimmyjohns.com/menu/menu.aspx
Thomas Lattimore:
Scott Dieter: #5, no tomato
Mark Shropshire: JJBLT w/lays chips
Denny Abraham: #9 with hot peppers
Kevin Mussleman:
Glenn Goodrich: #12 without tomato
Duncan Mapes: #14
Nils: #12
@shrop
shrop / gist:2997232
Created June 26, 2012 17:25
brew install php53 install error info
brew -v install php53 1 ↵
Homebrew 0.9
==> Downloading http://www.php.net/get/php-5.3.13.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php53-5.3.13
/usr/bin/tar xf /Library/Caches/Homebrew/php53-5.3.13
==> ./configure --prefix=/usr/local/Cellar/php53/5.3.13 --disable-debug --with-config-file-path=/usr/local/etc/php/5.3 --with-config-file-scan-dir=/usr/local/etc/php/5.3/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-sqlite-utf8 --enable-wddx --enable-ftp --enable-sockets --enable-zip --enable-pcntl --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-mbstring --enable-mbregex --enable-zend-multibyte --enable-bcmath --enable-calendar --with-openssl=/usr --with-zlib=/usr --with-bz2=/usr --with-ldap --with-l
@shrop
shrop / gist:3059651
Created July 6, 2012 11:27
Remove all .DS_store files form a file system
sudo find / -name ".DS_Store" -depth -exec rm {} \;