Skip to content

Instantly share code, notes, and snippets.

Delivering Giblets

Andrew Howden andrewhowdencom

Delivering Giblets
Block or report user

Report or block andrewhowdencom

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
View minimal monolog attachment.
* Howdenio Monolog extension
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
andrewhowdencom / setcookie.php
Last active Aug 29, 2015
Nginx alpha batch cookie bug
View setcookie.php
* This works fine without the http2 directive. However, if the http2 directive is enabled, all cookies after
* the first cookie are lost.
* Working | listen: 443 ssl;
* Broken | listen: 443 ssl http2;
// Set three cookies
View require.html
<!-- This does nothing -->
<script data-main="path/main.js" />
<!-- Not so good, as it blocks DOM -->
<script type="text/javascript" src="require.js" />
<script type="text/javascript" src="path/main.js" />
<!-- Not so good, as main.js may include require(['foo', 'bar'], function(f, b) {}); which has no meaning outside require.js -->
View factory.js
* Copyright (c) 2015
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
View .bashrc
# Use VIM, the one true editor.
export VISUAL=vim
andrewhowdencom / gist:7ce842855c2a34a90685342a1f17664b
Created Jun 23, 2016
(If my smoke screens are any good) I couldn't even break prod if I tried.
View gist:7ce842855c2a34a90685342a1f17664b
● 22:01 ~/Development/web/ $ kubectl get pods
letsencrypt-deployment-1892913836-pd0q7 1/1 Running 0 12m
nginx-deployment-2849758121-yvsfo 1/1 Running 0 12m
nginx-deployment-2987973546-fw8ac 0/1 CrashLoopBackOff 1 8s
nginx-deployment-2987973546-tkcy5 0/1 CrashLoopBackOff 1 8s

Keybase proof

I hereby claim:

  • I am andrewhowdencom on github.
  • I am andrewhowdencom ( on keybase.
  • I have a public key whose fingerprint is 79BA C08A 6ED1 FF1E ABE3 50A7 587D 3B3A 961D 2D2D

To claim this, I am signing this object:

andrewhowdencom / template-string.js
Last active Aug 24, 2016
Playing with template strings
View template-string.js
var template = `This is a lovely notion, but I\'m not sure if ${whoever} will go for it`;
var whoever = 'you';
andrewhowdencom / safety.yaml
Created Oct 20, 2016
Today I did something stupid and rm -rf'd root. Never again.
View safety.yaml
- name: "Install tools to prevent the developer hurting themselves"
name: "{{ item }}"
state: "latest"
- "safe-rm"
- name: "Replace the normal rm command with safe-rm"
You can’t perform that action at this time.