Skip to content

Instantly share code, notes, and snippets.

View thewellington's full-sized avatar

W. S. Wellington thewellington

View GitHub Profile
@thewellington
thewellington / pandoc.css
Created November 9, 2022 18:52 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@thewellington
thewellington / GPG-Tower
Created December 7, 2021 18:36 — forked from LeonardoCardoso/GPG-Tower
How to setup Tower to use the GPG Suite
# GPG on Tower
[terraform@orch workspace]$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
skytap_environment.environment: Refreshing state... (ID: 50740518)
skytap_environment.environment2: Refreshing state... (ID: 50740502)
skytap_vm.another: Refreshing state... (ID: 45090669)
# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@thewellington
thewellington / create_osx_boot.sh
Last active September 22, 2016 20:10
Create OS X Boot Disk
#!/usr/bin/env bash
#
#
# create boot disks from OSX Installers
#
# This script makes the following assumptions when creating a bootable USB drive.
# 1. You have downloaded the installer from the AppStore, and it is sitting in
# the /Applications directory (the default location.)
# 2. you have a freshly formatted USB drive with the following characteristics:
# - at least 8GB in size
@thewellington
thewellington / puppet_agent_reset.sh
Created June 30, 2015 22:27
Puppet Agent Reset
#! /bin/env python
# puppet_agent_reset.py
# Collect info from the skytap JSON and save it
#
# Tasks:
# Get the default gateway
# Collect JSON from http://<gateway>/skytap
# Parse VM ID from "id" and configuration id from "configuration_url"
# Check certname in puppet.conf, set to "VMID<vmid>-ENV<config>" if different
@thewellington
thewellington / change_computer_name.sh
Created April 27, 2015 22:23
JAMF Casper Suite change computer name before binding to AD
#!/bin/bash
#
# change_computer_name.sh
# 2015-04-06 by bill@wellingtonnet.net
#
# This script is for use with JAMF Casper Suite and makes some assumptions about
# the context in which it is running, specifically that arguments are served by
# the JSS and that arguments 1 through 3 are predefined as mount point, computer
# name, and username, respectively.
#
@thewellington
thewellington / switch.sh
Created January 30, 2015 17:39
Programmatically switch between your first 16 desktops in OS X Mavericks and Yosemite
#!/bin/bash
#
# switch.sh
# Allows for scripting the switching of the first 16 "Desktops" in OS X Mavericks
#
# Requires Mission Control Keyboard Shortcuts to be activated:
# Go to System Preferences -> Keyboard -> Shortcuts -> Mission Control.
# Click the expand Triangle next to Mission Control in the right hand pane.
# Activate "Switch to Desktop { 1-16 }
#
@thewellington
thewellington / extract_email.sh
Created October 20, 2014 14:41
regex to extract email addresses from a blob of text.
#!/usr/bin/env bash
#
#
# regex to extract email addresses from a blob of text.
#
# grep -i -o '[A-Z0-9._%+-]\+@[A-Z0-9.-]\+\.[A-Z]\{2,4\}' source_file.txt > dest_file.txt
#
#