Skip to content

Instantly share code, notes, and snippets.

@tlattimore
tlattimore / README.md
Created May 31, 2016 10:44 — forked from juampynr/README.md
Run Drupal 8 web tests without installing Drupal
  1. Create a MySQL database.
  2. Create a user that has access to that database.
  3. Make sure that you have the PDO_MySQL PHP library (otherwise you will get an error because it is missing).
  4. Run the following script.
  5. Once tests complete, we need to stop PHP's web server.

Note: there seem to be some issues with PHP's built-in web server. Please report them here https://www.drupal.org/node/1543858.

@tlattimore
tlattimore / 0_reuse_code.js
Created January 22, 2014 02:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

[aegir@bender ~]$ more .drush/appstate.drush.inc
<?php
function appstate_provision_apache_vhost_config($uri, $data) { return array(
" # rewrites /sites/default/files to the new url",
" <IfModule mod_rewrite.c>",
" RewriteEngine On",
" RewriteRule ^/sites/default/files(/.*)$ sites/" . $uri . "/files$1 [R,L]",
" </IfModule>",
);
}
@tlattimore
tlattimore / order.txt
Created June 12, 2012 15:09 — forked from bigfleet/order.txt
Jimmy John's order
http://www.jimmyjohns.com/menu/menu.aspx
Thomas Lattimore: Turkey Tom
Scott Dieter: #5, no tomato
Mark Shropshire: JJBLT
Denny Abraham: #9 with hot peppers
Kevin Mussleman:
Glenn Goodrich: #12 without tomato
Duncan Mapes: #14
Nils: #12