Skip to content

Instantly share code, notes, and snippets.

W. S. Wellington thewellington

Block or report user

Report or block thewellington

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:94e8bf3de32bfc068b809ecdcbd5b279
[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)
View gist:2e975d6ea8bae12a09624f00cd0c2b15
# 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.
View keybase.md

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 Sep 22, 2016
Create OS X Boot Disk
View create_osx_boot.sh
#!/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
View puppet_agent_reset.sh
#! /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 Apr 27, 2015
JAMF Casper Suite change computer name before binding to AD
View change_computer_name.sh
#!/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 Jan 30, 2015
Programmatically switch between your first 16 desktops in OS X Mavericks and Yosemite
View switch.sh
#!/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 Oct 20, 2014
regex to extract email addresses from a blob of text.
View extract_email.sh
#!/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
#
#
@thewellington
thewellington / modernie.sh
Last active Aug 29, 2015
Downloads and Installs Win7 and IE 9 - VMware Fusion VM for Macintosh
View modernie.sh
#!/usr/bin/env bash
#
# v1.0 - 2014-09-18
#
# downloads rar files from modern.ie and extracts them.
#
# INSTRUCTIONS: place this script in your home directory, set the executable bit, and run it.
URL='https://www.modern.ie/vmdownload?platform=mac&virtPlatform=vmware&browserOS=IE9-Win7&parts=4&filename=VMBuild_20131127/VMware/IE9_Win7/Mac/'
RAR_REGEX='IE9.Win7.For.MacVMware.part0{1.sfx,2.rar,3.rar,4.rar}'
@thewellington
thewellington / dsstore_cleanup.sh
Created Aug 15, 2014
This script will recursively delete the .DS_Store file generated by Macintosh computers. It takes a single argument, the path of the directory where you wish to begin the recursive deletion. Works on both Linux and Macs (with GNU find or BSD find)
View dsstore_cleanup.sh
#!/usr/bin/env bash
#
# This script will recursively delete the .DS_Store file generated by Macintosh computers.
# It takes a single argument, the path of the directory where you wish to begin the recursive deletion.
#
# works on both Linux and Macs (with GNU find or BSD find)
#
# EXAMPLE:
# dsstore_cleanup.sh /path/to/directory/
#
You can’t perform that action at this time.