Skip to content

Instantly share code, notes, and snippets.

Jon neophit

  • Seattle, WA
View GitHub Profile
@neophit
neophit / gist:0ece516f8b66ca483de8
Created Aug 5, 2014
brew install --HEAD prl-utils
View gist:0ece516f8b66ca483de8
brew install --debug --verbose --HEAD prl-utils
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Taps/rickard-von-essen/homebrew-formulae/Formula/prl-utils.rb
/usr/local/Library/Taps/rickard-von-essen/homebrew-formulae/Formula/prl-utils.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/git.rb
==> Cloning https://github.com/rickard-von-essen/prl-utils
git --git-dir /Library/Caches/Homebrew/prl-utils--git/.git status -s
Updating /Library/Caches/Homebrew/prl-utils--git
git config remote.origin.url https://github.com/rickard-von-essen/prl-utils
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master
@neophit
neophit / Useful Keyboard Text Shortcuts.applescript
Last active Mar 31, 2019
Add useful keyboard text shortcuts for exponents and fractions to your System Preferences. With iCloud enabled, these shortcuts will sync with your iOS devices. Tested on OS X 10.9.1 and iOS 7.0.4. Requires GUI Scripting Access: http://support.apple.com/kb/HT5914 (Based partially on this script: https://gist.github.com/Zettt/7724258)
View Useful Keyboard Text Shortcuts.applescript
set clickDelay to 0.3
set textReplaceList to {}
set exponentsListName to "Exponents (replaces ^0-^9 with ⁰-⁹)"
set fractionsListName to "Fractions (replaces 1/2-7/8 with ½-⅞)"
set exponentsList to {{"^0", ""}, {"^1", "¹"}, {"^2", "²"}, {"^3", "³"}, {"^4", ""}, {"^5", ""}, {"^6", ""}, {"^7", ""}, {"^8", ""}, {"^9", ""}}
set fractionsList to {{"1/2", "½"}, {"1/3", ""}, {"1/4", "¼"}, {"1/5", ""}, {"1/6", ""}, {"1/7", ""}, {"1/8", ""}, {"1/9", ""}, {"1/10", ""}, {"2/3", ""}, {"2/5", ""}, {"3/4", "¾"}, {"3/5", ""}, {"3/8", ""}, {"4/5", ""}, {"5/6", ""}, {"5/8", ""}, {"7/8", ""}}
set chosenLists to (choose from list {exponentsListName, fractionsListName} with title "Useful Keyboard Text Shortcuts" with prompt "Choose one or more sets of keyboard text shortcuts to add to your System Preferences.
This may take a minute to complete." OK button name "Add text shortcuts" cancel button name "Cancel" default items {exponentsListName, fractionsListName} with multiple selections allowed)
You can’t perform that action at this time.