Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.tjluoma.autologin</string>
<key>ProgramArguments</key>
<array>
<string>/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession</string>
<string>-suspend</string>
@tjluoma
tjluoma / 3rd Party Mac Apps.txt
Last active August 4, 2016 13:47
I am trying to identify Mac apps which people use which are not (exclusively) in the Mac App Store. Please add suggestions in the comments. I came up with almost 100 but I am sure that I am missing some. Any help appreciated.
1 1Password
2 Accordance
3 Alfred
4 Appfixer
5 Arqbackup
6 Audiobook Builder
7 Audio Hijack
8 Bartender
9 Battery Alert
10 BBedit
#!/bin/zsh -f
# clean out bartender files to try to fix install issues.
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2016-04-13
NAME="$0:t:r"
PATH=/usr/local/scripts:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
@tjluoma
tjluoma / bt4check.sh
Last active April 15, 2016 11:30
# Check to see if "low power" Bluetooth is supported on a given Mac
#!/bin/zsh -f
# Check to see if "low power" Bluetooth is supported on a given Mac
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2016-04-13
NAME="bt4check.sh"
PATH=/usr/local/scripts:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
@tjluoma
tjluoma / get-bbc-i-am-legend.sh
Created March 30, 2016 03:55
If you act before April 14th, 2016, you should be able to download all 9 parts of the BBC's “I Am Legend”. Part 1 is here: http://www.bbc.co.uk/programmes/b007k0s3 and the subsequent parts are linked thereafter.
#!/bin/zsh -f
# Purpose: Download the BBC production of “I Am Legend”
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2016-03-24
# Gist: https://gist.github.com/tjluoma/b432bca708e7ab5984a2da7532029de0
## You can change this to whatever you want
## The directory will be created if it does not exist
@tjluoma
tjluoma / slackcat-textexpander.txt
Created January 9, 2016 22:28
TextExpander snippet for https://github.com/vektorlab/slackcat/. You can change the list of channels to suit your needs.
slackcat %fillpopup:name=TEE-or-NOT:default=--tee:% --channel %fillpopup:name=CHANNEL:default=general:random% %fillpopup:name=FILENAME:default=:--filename %
#!/bin/zsh -f
# Purpose: Download all .mp3 episodes of a podcast
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2015-11-17
NAME="$0:t:r"
if [ -e "$HOME/.path" ]
@tjluoma
tjluoma / make-osx-usb-installer.sh
Created August 27, 2015 16:55
Given an “Install OS X {whatever}.app” - make a bootable USB installer
#!/bin/zsh -f
## Make USB Installer from Installer app
##
## Based on:
## “How to make a bootable OS X 10.10 Yosemite install drive”
## http://www.macworld.com/article/2367748/how-to-make-a-bootable-os-x-10-10-yosemite-install-drive.html
##
## From: Timothy J. Luoma
## Mail: luomat at gmail dot com
## Date: 2015-08-26
@tjluoma
tjluoma / ShowSpotify.scpt
Created April 24, 2015 11:51
To use with TextBar (http://www.richsomerfield.com/apps/) save to a file and add `osascript /path/to/ShowSpotify.scpt` with an update of about 10 seconds
-- submitted by Luca Zorzi lucazorzi.net
if application "Spotify" is running then
tell application "Spotify"
if player state is playing then
return "♫ " & (artist of current track as string) & " - " & (name of current track as string)
end if
end tell
end if