Skip to content

Instantly share code, notes, and snippets.

View gl2748's full-sized avatar

kjnnklllk gl2748

View GitHub Profile
@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
@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 / 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 / ratbag.txt
Created December 16, 2015 16:31
Good less
drush ev "print_r(views_get_all_views());" | less
@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 / 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 / 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 / keybase.md
Created December 29, 2015 19:05
keybase.md

Keybase proof

I hereby claim:

  • I am gl2748 on github.
  • I am iainmaitland (https://keybase.io/iainmaitland) on keybase.
  • I have a public key ASD6eGeebGectkwYB1nklng47i3nMKXvYMPq_cWnPydlUAo

To claim this, I am signing this object:

@gl2748
gl2748 / morning work
Created January 13, 2016 23:33
AM Work
get the sharethis icons into the right place - robb report tv content type.
Make a scaled down sprite... for responsive.
@gl2748
gl2748 / responsive sprites
Created January 18, 2016 03:56
Responsive sprites
.at_robbreport #block-rr-header-rr-header ul.header_links li.social a {
display: inline-block;
width: 19%;
margin-right: 3%;
max-width: 32px;
.stretchy {
position: relative;