Skip to content

Instantly share code, notes, and snippets.

View dgoodlad's full-sized avatar

David Goodlad dgoodlad

View GitHub Profile
@dgoodlad
dgoodlad / zshrc.sh
Created January 23, 2017 00:16
FYTB
# Fuck you touchbar
# Restarts the MBP touchbar software when it breaks:
# buttons stop working, or disappear, or whatever.
fuckyoutouchbar() {
pkill "Touch Bar agent"
killall ControlStrip
echo ":boom: TouchBar"
}
alias fytb=fuckyoutouchbar
@dgoodlad
dgoodlad / JREInstallLog.txt
Created August 24, 2016 11:54
JRE Install Log
---- INSTALL RUN |||| 08-24-2016 09:44:48 +1000
Install Log: Type:Network Severity:Debug Message:Get Staged XML from :https://javadl-esd-secure.oracle.com/update/1.8.0/mac-1.8.0_102-b14.xml
Install Log: Type:Network Severity:Debug Message:Arguments:(
"/var/folders/bn/86gz0cnj1hq128b_grd86wfw0000gn/T/AppTranslocation/91F40986-6616-485C-87A5-A24DA858D3B6/d/Java 8 Update 102.app/Contents/MacOS/MacJREInstaller",
"-psn_0_12028792",
""
)
Install Log: Type:Other Severity:Debug Message:Dictionary:{
}
Install Log: Type:Network Severity:Debug Message:Current Installed Version:XX

Keybase proof

I hereby claim:

  • I am dgoodlad on github.
  • I am dgoodlad (https://keybase.io/dgoodlad) on keybase.
  • I have a public key whose fingerprint is CA71 1987 600C AE58 FB5F 142E CE8D 13E8 7061 ED84

To claim this, I am signing this object:

@dgoodlad
dgoodlad / keybase.md
Created November 28, 2014 03:48
Keybase

Keybase proof

I hereby claim:

  • I am dgoodlad on github.
  • I am dgoodlad (https://keybase.io/dgoodlad) on keybase.
  • I have a public key whose fingerprint is 83E2 F322 F381 7652 5352 0B64 148F 6B79 E4EA 880A

To claim this, I am signing this object:

@dgoodlad
dgoodlad / Gemfile
Created October 21, 2014 22:38
Boxen script/sync
group :development do
# Replace the old aws gem with this one (or newer):
gem "aws-sdk-core", "2.0.0.rc15"
end
@dgoodlad
dgoodlad / mbsyncrc
Created September 22, 2014 23:42
mbsyncrc
UseIMAPS yes
UseTLSv1.2 yes
CertificateFile ~/.mutt/gmail.crt
IMAPStore GitHub-remote
Account GitHub
MaildirStore GitHub-local
Path ~/.mail/github/
Inbox ~/.mail/github/INBOX
@dgoodlad
dgoodlad / workflow.md
Last active August 29, 2015 14:06
dgoodlad's Lightroom Workflow

Flag Meanings

Pick/Reject/Unflagged

  • Pick = keep for further processing
  • Reject = delete for sure
  • Unflagged = I haven't even looked at it yet

Ratings

# Shortcut for a module under development
def dev(name, *args)
mod "boxen-#{name}", :path => "#{ENV['BOXEN_SRC_DIR']}/boxen/puppet-#{name}"
end
dev "boxen", #... Any args after this get ignored, for convenience
@dgoodlad
dgoodlad / gist:6982418
Created October 14, 2013 21:20
Extracting ghost-0.3.2.zip
~/src » unzip ~/Downloads/ghost-0.3.2.zip
Archive: /Users/dgoodlad/Downloads/ghost-0.3.2.zip
inflating: CHANGELOG.md
inflating: Gruntfile.js
inflating: LICENSE.txt
inflating: README.md
inflating: config.example.js
inflating: content/data/README.md
inflating: content/images/README.md
inflating: content/plugins/README.md
AUTHOR="David Goodlad"
git log --shortstat --author="${AUTHOR}" \
| grep -E "fil(e|es) changed" \
| awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed: ", files, "lines inserted: ", inserted, "lines deleted: ", deleted }'