Skip to content

Instantly share code, notes, and snippets.

View btopro's full-sized avatar
🃏
manifesting the future

Bryan Ollendyke btopro

🃏
manifesting the future
View GitHub Profile
@btopro
btopro / gist:7152f2f17be3d2c038e8
Last active August 29, 2015 14:00
Sublime packages I currently have installed
{
"installed_packages":
[
"2pdf",
"AdvancedNewFile",
"Auto Semi-Colon",
"BracketHighlighter",
"Color Highlighter",
"ColorPick",
"Compass",
@btopro
btopro / gist:a7df279dac7e249ef059
Last active August 29, 2015 14:03
module_invoke_all hack to open eyes about drupal core (6 or 7)

Issue the following command if you don't have devel already

drush @drupal7 en devel --y

#Let's hack core!

Rule 1 of Drupal: Don't hack core. Step 2 of this part of the talk: Hack core (butjust a lil tinny tiny bit)

go into includes/module.inc and find module_invoke_all (line 887)

@btopro
btopro / gist:739d7d0d745f41597174
Last active April 6, 2018 19:36
Sublime2 tuning and some best practices for setup
@btopro
btopro / gist:caa88cfafc300d6e5370
Created July 10, 2014 16:04
btopro's sublime settings
{
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/Color Scheme - Default/Colorized-41242979103884-Monokai.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"fallback_encoding": "UTF-8",
"find_selected_text": true,
@btopro
btopro / gist:462ec34ae263f371d829
Last active August 29, 2015 14:03
Drush & Automation piece
# http://drushcommands.com/
# status report
drush @drupal7 status
# clear caches, learn about it
drush @drupal7 cc
# clear all caches
drush @drupal7 cc all
@btopro
btopro / gist:1181cd160afc3370e88c
Last active August 29, 2015 14:04
Hands on RESTful webservices
@btopro
btopro / gist:19a8a4653a41223b6c98
Created August 22, 2014 20:44
CIS tuning as each patch / technique is applied
Base line
Executed 75 queries in 8.39 ms. Page execution time was 242.22 ms. Memory used at: devel_boot()=1.77 MB, devel_shutdown()=30.94 MB, PHP peak=31.75 MB.
D7-2263365-17a-module_implements.patch
Executed 75 queries in 8.82 ms. Page execution time was 211 ms. Memory used at: devel_boot()=1.78 MB, devel_shutdown()=31.06 MB, PHP peak=31.5 MB.
http://drupal.org/node/1650930
@btopro
btopro / gist:d424c961273ff5adc968
Created August 22, 2014 20:47
MOOC tuning as each patch / technique is applied
Base line
Executed 60 queries in 12.42 ms. Page execution time was 202.89 ms. Memory used at: devel_boot()=1.36 MB, devel_shutdown()=16.48 MB, PHP peak=16.75 MB.
Fast 404 / Socket modifications = no affect
This is after adding the PHP recommendations for realpath_cache!
Executed 60 queries in 11.77 ms. Page execution time was 178.47 ms. Memory used at: devel_boot()=1.34 MB, devel_shutdown()=15.57 MB, PHP peak=16 MB.
patch D7-2263365-17a-module_implements.patch
@btopro
btopro / proposed structure
Last active August 29, 2015 14:06
drush recipes automatic upgrade reading
{timestamp}.drecipe
side note: make a simple update recipe that doesn't do the RR / cron / cache stuff
(whatever folder you want below)
/drush/upgrades
--/sites
----UNIXSTAMP.drecipe
--/courses-all
@btopro
btopro / gist:b00e3bf22a94cd256127
Last active January 18, 2016 16:07
Work plan
https://windows.github.com/
http://www.sublimetext.com/ (get 2.x)
http://vagrantup.com
Goals:
-- Get a feel for Unix / Drush / Drupal
-- get this running http://www.drupalvm.com/
-- Figure out how to get around and modify a file via VIM / vi in UNIX
-- Use Drush to install a basic site (VDD provides directions to do this)