Skip to content

Instantly share code, notes, and snippets.

View jsheffers's full-sized avatar

Shane Jeffers jsheffers

View GitHub Profile
@salcode
salcode / dump-mamp-mysql-dbs.sh
Created February 21, 2014 20:30
Shell Script to dump all MAMP DBs into separate files
# based on http://www.commandlinefu.com/commands/view/2916/backup-all-mysql-databases-to-individual-files
# but modified for the MAMP path and to include default root/root as username and password
for I in $(/Applications/MAMP/Library/bin/mysql -u root -proot -e 'show databases' -s --skip-column-names); do /Applications/MAMP/Library/bin/mysqldump -u root -proot $I | gzip > "$I.sql.gz"; done
@chipcullen
chipcullen / gist:4276592
Created December 13, 2012 14:07
A fix for Drupal and Codekit. As described here - http://www.nickcomito.me/notebook/codekit-doesnt-refresh-after-compiling-sass-drupal - Codekit and Drupal don't get a long right out of the box. Add this to your html.tpl.php right after <?php print $styles; ?> and your SASS changes will be injected per normal via Codekit. Big shout out to Nick C…
<link rel="stylesheet" href="/<?php print path_to_theme(); ?>/css/style.css" />