Skip to content

Instantly share code, notes, and snippets.

View juanpri's full-sized avatar

juanpri juanpri

View GitHub Profile
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@juanpri
juanpri / bluetooth_from_shell
Last active December 16, 2015 18:19
osascript example
activation:
tell application "System Events"
tell process "SystemUIServer"
tell (menu bar item 1 of menu bar 1 whose description is "bluetooth")
click
click menu 1's second menu item
end tell
end tell
end tell