This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix word-break characters | |
defaults write .GlobalPreferences AppleTextBreakLocale en_US_POSIX | |
# Apply user's Dvorak layout settings to the startup login screen | |
sudo mv /Library/Preferences/com.apple.HIToolbox.plist{,.old} | |
sudo cp {$HOME,}/Library/Preferences/com.apple.HIToolbox.plist | |
sudo chown root:wheel /Library/Preferences/com.apple.HIToolbox.plist | |
sudo chmod 644 /Library/Preferences/com.apple.HIToolbox.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pp' | |
require 'json' | |
require 'fileutils' | |
require 'set' | |
# Filter for specific Route 53 hosted zones | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
unsurprising = "## master...origin/master" | |
check = "git status --porcelain -b" | |
show = "git status -sb" | |
system show unless `#{check}`.strip == unsurprising |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a Pysh script based on an 'idealized' partial re-implementation of my uta utility. | |
Pysh will basically be a language (or set of ugly macros) for quickly hacking shell-scripty tasks in Python. | |
Theoretically you get the luxury of Python idioms like generators, context managers, and meaningful whitespace, with the flexibility to hurl data between other programs in various convenient ways that don't involve Popen. | |
All the best languages have quirky special characters, right? (It's not like Perl, I promise.) |
NewerOlder