Skip to content

Instantly share code, notes, and snippets.

View gl2748's full-sized avatar

Iain Maitland gl2748

View GitHub Profile
@gl2748
gl2748 / RR_Structure
Last active December 21, 2015 20:02
Robb Focus
Targets from sites/all/modules/custom
./rr_header/img/pinterest.png
./rr_header/img/save-subscribe2.png
./rr_header/img/twitter.png
./rr_header/img/instagram.png
./rr_header/img/rr_logo.png
./rr_header/img/facebook.png
./rr_header/img/save-subscribe.png
./rr_header/img/mobile.png
@gl2748
gl2748 / summarize-views.php
Last active December 16, 2015 18:53 — forked from bnchdrff/summarize-views.php
summarize all views on a drupal site
<?php
$views = [
[
'view machine name',
'view name',
'view desc',
'base table',
'display machine name',
'display title',
'display plugin',
@gl2748
gl2748 / views spreadsheet maker
Created December 16, 2015 17:36
output spreadsheet of views
<?php
$views = [
[
'view machine name',
'view name',
'view desc',
'base table',
'display machine name',
'display title',
'display plugin',
@gl2748
gl2748 / ratbag.txt
Created December 16, 2015 16:31
Good less
drush ev "print_r(views_get_all_views());" | less
@gl2748
gl2748 / gist:955a9a5c560fc3d69b84
Created December 16, 2015 01:14
drush eval understanding...
drush eval 'foreach (views_get_all_views() as $view) { foreach ($view->display as $display => $data) { print "$view->name: $display\n"; }; }'
drush ev "print_r(array_keys(node_type_get_types()));"
iainm@iainm-e7450:~/rr001/robbreport/docroot$ drush ev "print_r(views_get_all_views());"
Array
(
[nodequeue_2] => view Object
(
[db_table] => views_view
@gl2748
gl2748 / gist:64c56145dd871ce97b6c
Created December 15, 2015 21:10
Hypothetical workflow.
Make sure your local dev env is up to date:
`git fetch --all; git pull . origin/master`
Create an issue if one has not already been created:
Create a branch for the issue.
`git checkout -b 123-abc-xyz`
@gl2748
gl2748 / ssh :(
Last active December 3, 2015 18:05
OpenSSH_6.7p1 Ubuntu-5ubuntu1.3, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to web-13362.prod.hosting.acquia.com [54.224.48.93] port 22.
debug1: Connection established.
debug1: identity file /home/iainm/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/iainm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
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
@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
@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