Skip to content

Instantly share code, notes, and snippets.

Avatar

Kim Pepper kimpepper

View GitHub Profile
View composer.json
{
"name": "drupal/search_365",
"type": "drupal-module",
"license": "GPL-2.0-or-later",
"homepage": "http://drupal.org/project/search_365",
"support": {
"issues": "https://www.drupal.org/project/issues/search_365"
},
"minimum-stability": "dev",
"prefer-stable": true,
View Drupal.org Gov Organisations in Australia
curl 'https://www.drupal.org/api-d7/node.json?type=organization&taxonomy_vocabulary_50=24660&taxonomy_vocabulary_52=24054' | jq -ar '.list[].title'
@kimpepper
kimpepper / media-update.md
Last active Dec 14, 2017
Core Media Update notes
View media-update.md

Upgrading to core media

Import media styles

Update fails if core media styles don't exist.

drush config-import --partial --source=/data/app/core/modules/image/config/install/ -y
@kimpepper
kimpepper / gprune.sh
Last active Apr 13, 2016
Prune merged git branches from local and remote
View gprune.sh
# Prune merged git branches from local and remote
# example usage: gprune 8.x-1.x
gprune() {
DEFAULT_BRANCH=master
PROTECTED_BRANCH_PATTERN='|master|releases|7.x.*|8.x.*'
# Allow the base branch to be passed in as 1st param.
base_branch=${1-$DEFAULT_BRANCH}
View npm install 2.10.0
npm install npm@2.10.0
nodejs node_modules/npm/bin/npm-cli install --loglevel silent
View Average Apache2 process size
ps -ylC apache2 --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
View SesMailer.php
<?php
/**
* @file
* Contains Drupal\ses_mailer\SesMailer
*/
namespace Drupal\ses_mailer;
use Aws\Exception\AwsException;
View gist:69790b26b8d2fc068a3f
[Mon Aug 17 11:49:20.999097 2015] [core:notice] [pid 10861:tid 140709681420160] AH00094: Command line: '/usr/sbin/apache2'
App 10958 stdout:
App 10958 stderr: Please configure your config/database.yml first
App 10958 stdout:
[ 2015-08-17 11:50:19.4379 10868/7efd15847700 App/Implementation.cpp:303 ]: Could not spawn process for application /data/app: An error occured while starting up the preloader.
Error ID: 4e4c48d9
Error details saved to: /tmp/passenger-error-afBjb7.html
Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
<pre class="commands">bundle install</pre>
View keybase.md

Keybase proof

I hereby claim:

  • I am kimpepper on github.
  • I am kimpepper (https://keybase.io/kimpepper) on keybase.
  • I have a public key whose fingerprint is 34AF 53B8 A01B B514 E7AE DB28 896C 360D E4F9 4F70

To claim this, I am signing this object: