Skip to content

Instantly share code, notes, and snippets.

View juliandunn's full-sized avatar

Julian C. Dunn juliandunn

View GitHub Profile
juliandunn /
Created April 29, 2015 00:53
Post mortem template



Waiving meetings

In some cases the IC might determine that a PM meeting for the incident isn't needed. If the IC decides to waive the meeting please replace the Meeting section with a note indicating the meeting has been waived (example: Meeting waived: Paul Mooring)

juliandunn /
Last active January 2, 2024 15:41
Talk at SXSWi by Joel Trammell.

Evolving from founder to great CEO

Joel Trammell, ex-CEO of NetQOS

CEO: command, management, leadership

  • management is power granted by your position
  • leadership is power granted freely because of a follower’s perception of your credibility, competence and caring.
juliandunn / my.cnf
Created June 30, 2016 03:54
default my.cnf inside the mysql container
# cat my.cnf
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
juliandunn / kitchen-freebsd92-portsnap.txt
Created March 11, 2014 17:39
Proving that all the pieces work without Bash on FreeBSD.
This file has been truncated, but you can view the full file.
borkbork ~/devel/gh/juliandunn/freebsd (master *)$ kitchen test portsnap-freebsd-92 --destroy=never
-----> Starting Kitchen (v1.2.1)
-----> Cleaning up any prior instances of <portsnap-freebsd-92>
-----> Destroying <portsnap-freebsd-92>...
Finished destroying <portsnap-freebsd-92> (0m0.00s).
-----> Testing <portsnap-freebsd-92>
-----> Creating <portsnap-freebsd-92>...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-freebsd-9.2'...
[default] Matching MAC address for NAT networking...
juliandunn /
Last active September 27, 2022 10:55
Notes on PostgreSQL performance optimization on RDS

Deep Dive: PostgreSQL on AWS

When loading data

  • disable backups (backup_retention=0)
  • disable multi-AZ and autovacuum
  • pg_dump -Fc (compressed) and pg_restore -j (parallel)
  • Increase maintenance_work_mem
juliandunn / gist:3933966
Created October 22, 2012 20:31
What an Amazon EC2 outage looks like to a guest system.
INFO: task kjournald:252 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kjournald D ffff880001004460 0 252 7 274 243 (L-TLB)
ffff8800674c5cf0 0000000000000246 ffff88006901c040 000007000000015c
000000000000000a ffff880069b197a0 ffffffff80502b80 0000000000000fc8
ffff880069b19988 ffffffff80263929
Call Trace:
[<ffffffff80263929>] _spin_lock_irqsave+0x9/0x14
[<ffffffff8026f1df>] do_gettimeofday+0x1c1/0x1dc
[<ffffffff80215dd8>] sync_buffer+0x0/0x3f
# Set up an AIX 6.1 server to have all the prerequisites to run Omnibus.
# Authors: Scott Hain (<>), Julian Dunn (<>)
# Notes:
# 1. /bin/sh is actually ksh. Your bashisms ain't gonna work here, sonny!
# 2. Run this script as superuser.
# 3. I've tried to be clear about what requires GNU Make and what requires BSD make
juliandunn /
Last active March 22, 2022 15:35
Adding EN_US to AIX LPAR

Chef Client 12 uses the UTF-8 locale. By default, BOS doesn't include it so Chef will throw warnings. Here's how you install it.

You need at least the AIX media (first disc), or copy all the files in /installp/ppc/*EN_US* somewhere on your LPAR. Let's say it's /tmp/rte

It's recommended that you use smit to install this charset so any WPARs you have also get the charset applied.

From a root shell type:

` $ smit lang

juliandunn /
Last active February 21, 2019 20:44
Script to set up IBM PDP AIX machines
# Note: On AIX, /bin/sh is Korn Shell. Don't use Bashisms here!
# Partitions are too small to be useful. Expand them.
chfs -a size=+2000000 /usr
chfs -a size=+2000000 /opt
chfs -a size=+2000000 /home
chfs -a size=+2000000 /var
chfs -a size=+2000000 /tmp
juliandunn / micros-pos-example.rb
Created September 14, 2018 20:00
Example, untested InSpec code for evaluating Micros POS systems against CVE-2018-2636
# Original Python:
control 'Check Micros POS for CVE-2018-2636' do
impact 1.0
title 'Check whether your Micros POS is vulnerable to CVE-2018-2636'
desc 'CVE-2018-2636 is a remote-execution vulnerability that gives unauthenticated attackers unrestricted access to the POS system.'
describe http('',
headers: {'Content-Type' => 'application/dime',
'SOAPAction' => '""',