This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.ntpdate</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/sbin/ntpdate</string> | |
<string>-b</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are the required fields | |
INSTALLED_NAME="" | |
INSTALL_DIR="" | |
DL_URL="" | |
LATEST_VERSION="" | |
VERSION_TYPE="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the actual filename that will be installed once the app is installed | |
# note that the '.app' suffix _is_ included because we might be | |
# installing preference panes so we don't want to assume. | |
INSTALLED_NAME="VLC.app" | |
# this is the directory where the 'INSTALLED_NAME' program will go | |
# when it is installed. Could be anywhere as long as user can write to it | |
# such as "$HOME/Applications" or "$HOME/Library/PreferencePanes" | |
# or even something weird like '/var/mac/apps' if you have a truly | |
# odd configuration for some reason. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALLED_NAME="VLC.app" | |
INSTALL_DIR="/Applications" | |
DL_URL=$(curl -sL 'http://update.videolan.org/vlc/sparkle/vlc.xml' | awk -F'"' '/http:\/\/.*\.dmg/{print $2}'| tail -1) | |
LATEST_VERSION=$(curl -sL 'http://update.videolan.org/vlc/sparkle/vlc.xml' | awk -F'"' '/sparkle:version/{print $2}'| tail -1) | |
VERSION_TYPE="CFBundleVersion" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Microsoft Word" | |
if it is running then | |
save active document | |
end if | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.unhide-users</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/chflags</string> | |
<string>nohidden</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
if exists (process "Caffeine") then | |
tell application "Caffeine" | |
if active is false then | |
turn on | |
do shell script "DURATION=`defaults read com.lightheadsw.caffeine.plist DefaultDuration` | |
if [ \"$DURATION\" = \"0\" ] | |
then | |
DURATION='Will run until quit' | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh -f | |
# Check Caffeine’s Status on Launch | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2014-05-23 | |
NAME="$0:t:r" | |
# 1 = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh -f | |
## Note: requires `gdate` --> brew install coreutils | |
# What year do you want to stop at? | |
# i.e. "2015" = print all Sundays from now until the end of 2015 | |
STOP='2015' | |
# We need to figure out when the next Sunday is… | |
# Step 1) This is today (will be number 0-7) | |
TODAY=`gdate '+%u'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [ "$YEAR" -le "${STOP}" ] | |
do | |
# calculate and print the date | |
# Note that you can control the format of the date here too | |
DATE=`gdate --date "+${COUNT} day" '+%B %d, %Y'` | |
cat <<EOINPUT | |
* ${DATE} | |
* []() | |
* |
OlderNewer