Skip to content

Instantly share code, notes, and snippets.

View pwelch's full-sized avatar

Paul Welch pwelch

View GitHub Profile
@pwelch
pwelch / git-notes.md
Created December 27, 2017 21:37 — forked from topheman/git-notes.md
Git notes cheat sheet
@pwelch
pwelch / post-mortem-template.md
Created January 15, 2017 19:26 — forked from juliandunn/post-mortem-template.md
Post mortem template

INCIDENT DATE - INCIDENT TYPE

Meeting

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)

@pwelch
pwelch / keybase.md
Created September 21, 2016 13:48
Keybase proof

Keybase proof

I hereby claim:

  • I am pwelch on github.
  • I am pwelch (https://keybase.io/pwelch) on keybase.
  • I have a public key ASA4tZedrR2DZH6QpSNwpdKJZWGxDxEv2al3GbuE7un52go

To claim this, I am signing this object:

@pwelch
pwelch / cloud-init_example.yml
Last active April 18, 2024 12:43
Cloud-init Example Configuration
#cloud-config
package_upgrade: true
packages:
- zsh
- tmux
- nmap
- curl
- wget
- git
- htop
@pwelch
pwelch / gist:9b9d267a7feccb441d5166e3151266f2
Created May 16, 2016 14:37 — forked from joelparker/gist:0429f8c5547c47ad35a4
IAM Group Policy for Arq4 Backup on S3
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1416260474000",
"Effect": "Allow",
"Action": [
"s3:CreateBucket",
"s3:GetLifecycleConfiguration",
"s3:ListBucket",
@pwelch
pwelch / springer-free-maths-books.md
Created December 28, 2015 20:42 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
@pwelch
pwelch / chef_syntax_tests.take
Last active October 27, 2015 17:14
Rake tasks for testing .rb or .json files
# Testing tasks
namespace :test do
desc 'Runs ruby or jq syntax check on roles'
task :roles do
puts '===== Running ruby syntax check on roles'
Dir.foreach('roles/') do |file|
if file =~ /.rb$/
sh "ruby -c roles/#{file}"
elsif file =~ /.json$/
@pwelch
pwelch / pdf_png.rb
Last active October 7, 2015 12:39
Creates a PNG from the first page of each PDF in a given directory
#!/usr/bin/env ruby
##
# Creates a PNG file from the 1st page of each PDF in a given directory
require 'mkmf'
stop = Proc.new { |msg| puts "\nFailure#{msg}"; exit 1 }
ARGV[0].nil? ? stop.call(': Provide directory of PDF files as first argument') : Dir.chdir(ARGV[0])
%w{gs convert}.each do |cmd|
background do
set_omniauth()
click_link_or_button 'Sign up with Facebook'
end