Skip to content

Instantly share code, notes, and snippets.

Jamie Hollern jamiehollern

  • Dùn Phris/Zürich
Block or report user

Report or block jamiehollern

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tatianamac /
Last active Oct 17, 2019
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Before I'll agree to a speaking event, I try to do as much research I can around the event to ensure it aligns with my ethos. I want to share this in case it's helpful to any other speakers.

👐 Speaking comes with immense privilege. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most marginalised and suppressed communities.

😫 I wish I didn't have to, but this is long because I provide a lot of explanations for those of you who never had to consider these things. And I will be honest, most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

1️⃣ All of these are based on my own ethos. I don't wish to or attempt to speak on behalf of all conference speake

technology-amazeelabs / Drupal 8 Local
Last active Jun 19, 2019
Drupal 8 local override for Settings and Services files
View Drupal 8 Local

Add the following two files: settings.local.php and services.local.php to the web/sites/default/ folder within your Drupal 8 project to override settings such as enabling Twig debug and disabling cache.

Depending on the project, you may need to rename the files to local.settings.php and respectively.

rhukster /
Last active Oct 19, 2019
Easy Brew PHP version switching
# Creator: Phil Cook
# Modified: Andy Miller
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
WengerK /
Last active Aug 20, 2019
Drupal 8 - Debugging Ajax Commands & Dialogs

Drupal 8 - Debugging Ajax Commands & Dialogs

'Cause it's nearly impossible to var_dump or dump into an Ajax Dialog or an Ajax Command, the most easier way is to write into the Apache logs.

To do this, just add the following snippet in your code:

error_log(var_export($var), TRUE);
webflo / drupal-finder.php
Created Oct 26, 2017
View drupal-finder.php
// Usage: php drupal-finder.php /var/www/some/example/path
include __DIR__ . '/vendor/autoload.php';
$path = array_pop($argv);
$finder = new \DrupalFinder\DrupalFinder();
print "Input: " . $path . PHP_EOL;
View config:schema:foobar.views.filter.yml
# Schema for the views plugins.
type: views_filter
label: 'Foobar numeric'
type: views.filter_value.numeric
label: 'Foobar Numeric'
akirattii /
Last active Aug 8, 2019
memo: MySQL docker container settings for slow query log

Check running mysql container:

$ sudo docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
26137efa979f        mysql               "docker-entrypoint..."   8 months ago        Up 10 minutes>3306/tcp   container-mysql

Check docker container mysql version:

$ sudo docker exec container-mysql mysqld --version`
mysqld  Ver 5.7.15 for Linux on x86_64 (MySQL Community Server (GPL))
Leksat / Composer JS libraries example.diff
Created Apr 26, 2017
In this example we add masonry, imagesloaded, and dropzone libraries to Composer.
View Composer JS libraries example.diff
diff --git a/.gitignore b/.gitignore
index fc00ed5..ac82bec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@ web/core
jmolivas /
Last active Aug 5, 2019
Render a form on a page via a Controller on Drupal8.

Create file at ~/console/chain/generate-controller-form-render.yml containing:

  name: 'generate:controller:form:render'
  description: 'Controller + Form generator'
  - command: 'generate:module'
        module: example
mikecrittenden /
Created Sep 16, 2016
Rebuild Drupal 8 routing table with Drush
drush ev '\Drupal::service("router.builder")->rebuild();'
You can’t perform that action at this time.