Skip to content

Instantly share code, notes, and snippets.

View fturcheti's full-sized avatar

Felipe Turcheti fturcheti

View GitHub Profile
#!/bin/bash
# ---
#
# Based on:
#
# https://github.com/matthewmcvickar/heyfocus
#
# ---
#
#!/usr/bin/env bash
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ "${STATUS}x" = "1x" ]; then
defaults write com.apple.finder AppleShowAllFiles -bool FALSE
else
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
fi
killall Finder
#!/usr/bin/env bash
defaults write com.apple.finder CreateDesktop true
killall Finder
#!/usr/bin/env bash
defaults write com.apple.finder CreateDesktop false
killall Finder
#!/usr/bin/env bash
networksetup -setairportpower en1 off
echo "NOW:" `networksetup -getairportpower en1`
networksetup -setairportpower en1 on
echo "NOW:" `networksetup -getairportpower en1`