Skip to content

Instantly share code, notes, and snippets.

View mgaffney's full-sized avatar

Michael Gaffney mgaffney

View GitHub Profile
@mgaffney
mgaffney / Antonyms.md
Created April 3, 2021 18:56 — forked from maxtruxa/Antonyms.md
A list of common terms used in programming and their respective antonyms.

Antonym List

Note: The table headings (positive/negative) are not necessarily meaningful.

Positive Negative
acquire release
add remove (e.g. an item), subtract (arithmetic)
advance retreat
allocate deallocate (correct), free (common)
allow deny
@mgaffney
mgaffney / install-arch.md
Last active January 9, 2019 18:04
Install Arch Linux with encrypted file-system and UEFI.

Arch Linux Install

Install Arch Linux with encrypted file-system and UEFI. Instructions are for a Dell Precision 5530 (laptop) using a wired/ethernet connection during the installation and initial configuration of the system. WiFi access is not enabled until the Post Install phase.

This is based on:

@mgaffney
mgaffney / lambda-logging.tf
Created November 30, 2018 14:29
Lambda: enable logging for a lambda function using terraform
# To enable a lambda function to log, create an IAM policy with the needed
# permissions and attach it to the lambda's IAM role.
resource "aws_lambda_function" "func" {
filename = "lambda_function_payload.zip"
function_name = "lambda_function_name"
handler = "exports.text"
runtime = "go1.x"
# each lambda function must have an IAM role
role = "${aws_iam_role.lambda_role.arn}"
@mgaffney
mgaffney / example.puml
Created February 16, 2018 17:00 — forked from QuantumGhost/example.puml
A simple template for PlantUML to draw ER diagram. The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@mgaffney
mgaffney / recurly-class-diagram.puml
Created July 19, 2017 14:28
Class Diagram of Recurly API objects
@startuml
skinparam defaultFontName Source Sans Pro
skinparam shadowing false
skinparam classAttributeIconSize 0
set namespaceSeparator none
note "The <b><<PoorDoc>></b> sterotype is used\nto denote classes which have not\nbeen well documented by Recurly." as N1
note "Attributes of type <b>float</b> are taken from the \nexamples shown in the sidebar of the Recurly\ndocumention. However, it is important to note\nthat the main documentation lists these\nattributes as string types." as N2

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: