Skip to content

Instantly share code, notes, and snippets.

View woneill's full-sized avatar

Bill (William) O'Neill woneill

View GitHub Profile
---
ssh_authorized_keys:
- "github:woneill"
#hostname: myhost
k3os:
data_sources:
- cdrom
modules:
- kvm
@woneill
woneill / vscode_extensions.txt
Created June 18, 2020 19:50
List of installed VS Code extensions, output via 'code --list-extensions'
bierner.markdown-mermaid
castwide.solargraph
casualjim.gotemplate
CoenraadS.bracket-pair-colorizer
DavidAnson.vscode-markdownlint
eamodio.gitlens
EditorConfig.EditorConfig
esbenp.prettier-vscode
fabiospampinato.vscode-todo-plus
GitHub.vscode-pull-request-github
@woneill
woneill / README.txt
Created May 6, 2020 15:11
Prepend JIRA issue name to commits
To set up:
Create the directory ~/.git-templates/hooks and save the above content in a file named prepare-commit-msg in that directory
Run chmod a+x ~/.git-templates/hooks/prepare-commit-msg
Run git config --global init.templatedir '~/.git-templates'
In any repos you already have on your machine, run git init to apply the changes. Newly cloned repos won't need this step.
Once this has been set up, running a command like git commit -m "This is a test message" on a branch such as ABC-123 will produce a final commit message of [ABC-123] This is a test message automatically.

pre-commit hooks

The pre-commit framework is used to ensure consistency . It is configured via .pre-commit-config.yaml to run the checks prior to allowing a git commit to continue.

Installation

On MacOSX install the pre-commit package

@woneill
woneill / Makefile
Created October 14, 2019 14:30
Start of a Makefile for kind/helm testing
KIND_VERSION := 0.5.1
KUBECTL_VERSION := 1.16.1
HELM_VERSION := 2.14.3
UNAME := $(shell uname | tr '[:upper:]' '[:lower:]')
WAIT := 200s
BIN_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))bin
TMP_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))tmp
KIND := $(BIN_PATH)/kind
KUBECTL := $(BIN_PATH)/kubectl
HELM := $(BIN_PATH)/helm
data "external" "local_tools" {
program = ["sh", "-c", "${data.template_file.local_tools.rendered}"]
}
data "template_file" "local_tools" {
template = <<EOF
PATH="$PATH"
LOCAL_TOOLS_PATH="$(mktemp -d)"
platform="$(uname -s)"
GIT
remote: https://github.com/inspec/inspec
revision: 7bbeac3ea9ae2d2dcf9c685e6a39f2ee859ddbe9
tag: v2.2.50
specs:
inspec (2.2.50)
addressable (~> 2.4)
faraday (>= 0.9.0)
faraday_middleware (~> 0.12.2)
hashie (~> 3.4)
FROM amazonlinux:1
MAINTAINER William O'Neill
# The Amazon Linux Docker image doesn't contain all of the packages that the EC2
# instance starts with. This script installs the missing packages only when
# building a docker image
# List was generated by comparing the output of
# docker run -it --rm amazonlinux:latest rpm --queryformat "%{NAME}\n" -qa | sort
# and

Keybase proof

I hereby claim:

  • I am woneill on github.
  • I am woneill (https://keybase.io/woneill) on keybase.
  • I have a public key ASBfvnD-6jUaof9zpR5VsrQVJe5n8Sb9UpXbhh0yev4uCwo

To claim this, I am signing this object: