I hereby claim:
- I am MarkSHarrison on github.
- I am markharrison (https://keybase.io/markharrison) on keybase.
- I have a public key whose fingerprint is 5CB3 4B51 8E24 C87E FD35 DBD1 EA2D 3C3A 07A5 DC93
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
HELLO_WORLD_URL="https://gist.githubusercontent.com/MarkSHarrison/8b5d0f5e3dff96fe80caabf8b2df2801/raw"
# Execute remote bash script via curl
curl -s ${HELLO_WORLD_URL} | bash
curl -s ${HELLO_WORLD_URL} | bash -s arg1 arg2
bash <(curl -s ${HELLO_WORLD_URL}) arg1
eval "$(curl -s ${HELLO_WORLD_URL})"
source <(curl -s ${HELLO_WORLD_URL})| printf "\nHello World!\n" | |
| echo $1 |
| data:text/html,<style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/terminal");e.getSession().setMode("ace/mode/text");e.setFontSize("20");e.focus();</script> |
| data:text/html,<style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/twilight");e.getSession().setMode("ace/mode/yaml");e.setFontSize("20");e.focus();</script> |
| # fixBrewPerms: | |
| # ------------------------------------------------------------------- | |
| fixBrewPerms(){ | |
| sudo chown -R $(whoami) /usr/local/bin /usr/local/Cellar /usr/local/share /usr/local/share/man /usr/local/share/man/man1 | |
| } | |
| # upgradeBrew: | |
| # ------------------------------------------------------------------- | |
| upgradeBrew(){ | |
| fixBrewPerms |
| //Goog.gl Shortener API - https://developers.google.com/url-shortener/v1/ | |
| //Requires URL Shortener API to be enable in Resources > Advanced Google Services of Script Editor | |
| //Requires cFlatten reference "MqxKdBrlw18FDd-X5zQLd7yz3TLx7pV4j" in Resources > Lirbraries... of Script Editor - http://goo.gl/U4v9q2 | |
| function onOpen() { | |
| SpreadsheetApp.getUi() | |
| .createMenu("Goo.gl") | |
| .addItem("Shorten Selected URL(s)","setURLShorts") | |
| .addItem("Fetch Selected URL(s) Analytics","getURLAnalytics") | |
| .addToUi() |
| ///////////////////////////////////////////////////////// | |
| // Copied from http://www.alecjacobson.com/weblog/?p=3816 | |
| ///////////////////////////////////////////////////////// | |
| #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <unistd.h> | |
| BOOL copy_to_clipboard(NSString *path) | |
| { | |
| // http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage | |
| NSImage * image; |
Download OS X El Capitan 10.11.1
Create OS X El Capitan 10.11 Bootable Installer USB Flash Drive
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/ElCapInstaller --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction| # Enable Mac App Store Auto Updates | |
| # Quit System Preferences app | |
| osascript -e "tell application \"System Preferences\" to quit" | |
| # Disable softwareupdate as workaround for defaults cache breaking | |
| sudo softwareupdate --schedule off | |
| # Automatically check for updates | |
| sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool True | |
| # Download newly available updates in background | |
| sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool True | |
| # Install OS X updates |