Skip to content

Instantly share code, notes, and snippets.

View pwelch's full-sized avatar
:octocat:

Paul Welch pwelch

:octocat:
View GitHub Profile
@pwelch
pwelch / import.zsh
Created December 12, 2012 00:06 — forked from moutten/import.zsh
# This requires you install the command line tools from Amazon, and setup your Amazon credentials appropriately.
# - http://aws.amazon.com/developertools/351/
for region (us-east-1 us-west-1 us-west-2) ec2-import-keypair $USER -f ~/.ssh/id_rsa.pub --region $region
background do
set_omniauth()
click_link_or_button 'Sign up with Facebook'
end
@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 / 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 / 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 / git-notes.md
Created December 27, 2017 21:37 — forked from topheman/git-notes.md
Git notes cheat sheet
@pwelch
pwelch / journalctl_enable_persistent_storage.md
Created January 22, 2018 15:20 — forked from JPvRiel/journalctl_enable_persistent_storage.md
Enable persistent storage for the systemd journal log

Enable persistent storage for the systemd journal log

Overview

The assumed default setting in /etc/systemd/journald.conf is Storage=auto which implies that systemd journaling will only persist the journal if the expected storage location is available. Otherwise, the journal data is stored in memory and lost between reboots. On Ubuntu 16.04, /var/log/journal does not exist by default. Create it to keep and query events from previous boots.

Considerations:

  • Syslog still provides the persistant log records for Ubuntu 16.04, so enabling persistant systemd journal logging does cause a level of duplicaiton.
  • There are sane defaults:
@pwelch
pwelch / instructions.md
Created August 8, 2019 20:49 — forked from douglasmiranda/instructions.md
Add email to Keybase.io PGP Key (Public Key)

Export your public key:

keybase pgp export > keybase-public.key

Export your private key:

keybase pgp export --secret > keybase-private.key
@pwelch
pwelch / curl.md
Created September 8, 2019 22:51 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.