Skip to content

Instantly share code, notes, and snippets.

@loganakamatsu
loganakamatsu / show-hidden.sh
Created April 26, 2016 19:50
Show/ hide hidden files in finder
defaults write com.apple.finder AppleShowAllFiles YES
@loganakamatsu
loganakamatsu / mute.sh
Created April 25, 2016 15:58
(Un)Mute OS X
# works nicely as an Automator 'run shell script' task
osascript -e 'set volume output muted true'
@loganakamatsu
loganakamatsu / .slate.js
Created April 25, 2016 15:50
Slate Javascript Config
var fullscreen = slate.operation("move", {
"x" : "screenOriginX",
"y" : "screenOriginY",
"width" : "screenSizeX",
"height" : "screenSizeY"
});
var pushLeft = slate.operation("push", {
"direction" : "left",
"style" : "bar-resize:screenSizeX/2"
@loganakamatsu
loganakamatsu / volume-up.sh
Created April 25, 2016 15:41
Trim volume (up) in OS X
# works nicely as an Automator 'run shell script' task
vol=$((`osascript -e 'output volume of (get volume settings)'` + 3))
osascript -e "set volume output volume $vol"
@loganakamatsu
loganakamatsu / airport-off.sh
Created April 25, 2016 15:20
OS X Automator -- Turn wifi off
# create an Automator application with 'Run Shell Script' action; then it can be searched in spotlight
networksetup -setairportpower airport off
# turn it back on:
# networksetup -setairportpower airport on
@loganakamatsu
loganakamatsu / keybase.md
Created July 18, 2014 17:49
keybase proof

Keybase proof

I hereby claim:

  • I am loganakamatsu on github.
  • I am akamatsu (https://keybase.io/akamatsu) on keybase.
  • I have a public key whose fingerprint is C6BE 6F34 7201 9211 E09C 5320 3668 A769 F672 608F

To claim this, I am signing this object: