Skip to content

Instantly share code, notes, and snippets.

View gl2748's full-sized avatar

Iain Maitland gl2748

View GitHub Profile
@gl2748
gl2748 / Drush features cheatsheet
Last active August 29, 2015 14:22
Drush cheatsheet for updating a feature
// see status of your feature
drush features
// if you don't have diff
drush dl diff
drush en diff
//Show a diff of a feature module.
drush fd psilabs_str
//Update a feature module on your site. From database to the code
drush fu psilabs_str
@gl2748
gl2748 / gist:6e19cfdd277b46b4c4ed
Last active August 29, 2015 14:24
docker nginx ghost
docker run -v /data --name ghostdata busybox echo Data-only container for Ghost
from...
docker run -v /data --name ghostdata dockerfile/ubuntu echo Data-only container for Ghost
With that out of the way let's create our Ghost config file, /docker/blog/config.js:
docker run -d --volumes-from ghostdata --name ghostblog -v ~/docker/blog:/ghost-override ghost:latest
docker run -d -p 80:2368 --volumes-from ghostdata --name ghostblog -v ~/docker/blog:/ghost-override ghost:latest
@gl2748
gl2748 / gist:82f233504f797f355c5e
Created September 8, 2015 15:20
Drupal Contributions
Create patch for Publish Content Module to make variable exportable to features.
@gl2748
gl2748 / gist:33dc6445c6aa3b30ec94
Created September 10, 2015 12:19
Get drush rs working... odd
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer global require drush/drush:7.*
export PATH="$HOME/.composer/vendor/bin:$PATH" <-THIS ONE
@gl2748
gl2748 / search a directory
Created September 23, 2015 17:30
Search a directory
grep -r esdportal_contact .
drush uli
zcat somedbdump.sql.gz | drush sqlc
@gl2748
gl2748 / gist:e601724c0ce6d851a90d
Created October 7, 2015 17:01
Run a drupal function solo
drush php-eval 'print_r(entity_get_property_info("e3_contact"))' | less
@gl2748
gl2748 / git hint upstream merge sync
Created October 13, 2015 17:27
git upstream sync
541 git remote add ESD https://github.com/ESDet/esdportal_e3.git
542 git fetch ESD
543 git merge --no-ff
544 git merge --no-ff ESD/7.x-1.x
@gl2748
gl2748 / gist:4cc95800b2b79b5e8e56
Created October 23, 2015 20:23
Permissions in Drupal and unix systems generally
http://stackoverflow.com/questions/31016505/setting-permissions-in-flask
http://www.homeautomationforgeeks.com/openhab.shtml
http://localhost:8080/openhab.app
http://localhost:8080/habmin/index.html
https://github.com/openhab/openhab/wiki/Z-Wave-Binding
https://groups.google.com/forum/#!topic/openhab/Ld3BIFFIvy0