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
tatianamac / tatiana-mac-speaker-rider.md
Last active Oct 17, 2019
Tatiana Mac's Speaker Rider
View tatiana-mac-speaker-rider.md

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
technology-amazeelabs / Drupal 8 Local Settings.md
Last active Jun 19, 2019
Drupal 8 local override for Settings and Services files
View Drupal 8 Local Settings.md

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 local.services.yml respectively.

@rhukster
rhukster / sphp.sh
Last active Oct 19, 2019
Easy Brew PHP version switching
View sphp.sh
#!/bin/bash
# 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_patch_version=${osx_patch_version:-0}
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
@WengerK
WengerK / README.md
Last active Aug 20, 2019
Drupal 8 - Debugging Ajax Commands & Dialogs
View README.md

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
webflo / drupal-finder.php
Created Oct 26, 2017
drupal-finder.php
View drupal-finder.php
<?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.
views.filter.project_size_range_select:
type: views_filter
label: 'Foobar numeric'
views.filter_value.project_size_range_select:
type: views.filter_value.numeric
label: 'Foobar Numeric'
@akirattii
akirattii / docker-mysql-slow-query-log.md
Last active Aug 8, 2019
memo: MySQL docker container settings for slow query log
View docker-mysql-slow-query-log.md

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       0.0.0.0:3306->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
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
web/modules/contrib
web/themes/contrib
web/profiles/contrib
+web/libraries
@jmolivas
jmolivas / README.md
Last active Aug 5, 2019
Render a form on a page via a Controller on Drupal8.
View README.md

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

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