Skip to content

Instantly share code, notes, and snippets.

Joe Fitzgerald joefitzgerald

Block or report user

Report or block joefitzgerald

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 keybase.md

Keybase proof

I hereby claim:

  • I am joefitzgerald on github.
  • I am joefitzgerald (https://keybase.io/joefitzgerald) on keybase.
  • I have a public key whose fingerprint is 93DE 6FA9 397F 6F38 DE5F C14E 3FAE 73BF 9E8A 848C

To claim this, I am signing this object:

View gist:da3c3a8b3aa4154a053a
go: missing Mercurial command. See http://golang.org/s/gogetcmd
package code.google.com/p/go.tools/cmd/goimports: exec: "hg": executable file not found in $PATH
View update-gopivotal-com-email-addresses.scpt
tell application "Contacts"
repeat with i from 1 to (count every person)
set theEmailAddresses to properties of emails of person i
repeat with j from 1 to (count of theEmailAddresses)
if value of item j of theEmailAddresses contains "@gopivotal.com" then
set oldAddress to value of item j of theEmailAddresses
set AppleScript's text item delimiters to {"@"}
set firstBit to first text item of oldAddress
set newAddress to firstBit & "@pivotal.io"
set value of item j of emails of person i to newAddress
View gist:cc038da8ecf194e211b1
c:\projects\go-plus>cinst -debug atom -f
20140712-08:17:07 [DEBUG] Running 'Append-InstallLog' with chocoInstallLog:''
20140712-08:17:07 [CHOCO] ################################################################################
20140712-08:17:07 [CHOCO] # Going Chocolatey on 2014-07-12 08:17:07Z #
20140712-08:17:07 [CHOCO] ################################################################################
20140712-08:17:07 [DEBUG] Arguments: $command = 'install'|$packageNames='atom'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|$force=True|$prerelease=False|$localonly=False|$verbosity=False|$debug=True|$quiet=False|$name=''|$ignoreDependencies=False|$forceX86=False|$packageParameters=''|PowerShellVersion=4.0
20140712-08:17:07 [DEBUG] Running 'Chocolatey-Install' for 'atom' with source: '', version: '', installerArguments:''
20140712-08:17:07 [DEBUG] Running 'Chocolatey-NuGet' for atom with source:''. Force? True
20140712-08:17:07 [CHOCO]
@joefitzgerald
joefitzgerald / gist:67eeac2aeef293981a9c
Created Jul 12, 2014
Atom Install Error - Alpha 2
View gist:67eeac2aeef293981a9c
c:\projects\go-plus>cinst -debug atom -f
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command =
'install'|$packageNames='atom'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|
$force=True|$prerelease=False|$localonly=False|$verbosity=False|$debug=True|$quiet=False|$name=''|$ignoreDependencies=F
alse|$forceX86=False|$packageParameters=''|PowerShellVersion=4.0
DEBUG: Running 'Chocolatey-Install' for 'atom' with source: '', version: '', installerArguments:''
DEBUG: Running 'Chocolatey-NuGet' for atom with source:''. Force? True
Chocolatey (v0.9.8.26-alpha2) is installing 'atom' and dependencies. By installing you accept the license for 'atom' and
each dependency you are installing.
@joefitzgerald
joefitzgerald / prerequisites.sh
Last active Mar 29, 2017
Tech Summit Pre-Requisites Checker
View prerequisites.sh
#!/bin/bash --login
set -o nounset
export EXPECTED_RUBY_VERSION="1.9.3"
export EXPECTED_RBENV_RUBY_VERSION="1.9.3-p545"
logError () {
logCustom 1 "ERROR: $1"
View crash.log
2014/01/31 13:57:39 Packer Version: 0.5.1 eeefde8fc71444fdfc77711dc0e2789fa9b3b7d2
2014/01/31 13:57:39 Packer Target OS/Arch: darwin amd64
2014/01/31 13:57:39 Built with Go Version: go1.2
2014/01/31 13:57:39 Detected home directory from env var: /Users/jenkins
2014/01/31 13:57:39 Attempting to open config file: /Users/jenkins/.packerconfig
2014/01/31 13:57:39 File doesn't exist, but doesn't need to. Ignoring.
2014/01/31 13:57:39 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot digitalocean:packer-builder-digitalocean qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso virtualbox-ovf:packer-builder-virtualbox-ovf vmware-vmx:packer-builder-vmware-vmx amazon-instance:packer-builder-amazon-instance docker:packer-builder-docker googlecompute:packer-builder-googlecompute openstack:packer-builder-openstack vmware-iso:packer-builder-vmware-iso] Commands:map[build:packer-command-build fix:packer-command-fix
@joefitzgerald
joefitzgerald / win-updates.ps1
Created Dec 31, 2013
Install All Windows Updates, Rebooting As Many Times As Required
View win-updates.ps1
param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=10)
function Check-ContinueRestartOrEnd() {
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
$RegistryEntry = "InstallWindowsUpdates"
switch ($global:RestartRequired) {
0 {
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry
@joefitzgerald
joefitzgerald / gist:7914669
Created Dec 11, 2013
Cygwin/OpenSSH sshd.conf
View gist:7914669
# $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/bin:/usr/sbin:/sbin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
@joefitzgerald
joefitzgerald / sysprep-and-seal.ps1
Created Aug 17, 2013
Sysprep And Remove Vagrant User
View sysprep-and-seal.ps1
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SysprepAndSeal" -ErrorAction SilentlyContinue
$ObjUser = [ADSI]"WinNT://localhost/vagrant";
$ObjUser.userflags = 2;
$ObjUser.setinfo();
C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /quiet /shutdown
You can’t perform that action at this time.