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
-- Grabs a set amount of paragraphs of Lipsum from lipsum.com | |
-- | |
-- Created by Zettt on 2011-02-02 | |
-- Mac OS X Screencasts http://macosxscreencasts.com | |
-- | |
-- Original from Brett Terpstra | |
-- http://brettterpstra.com/random-lipsum-for-textexpander/ | |
-- | |
-- This script can be used with Keyboard Maestro, LaunchBar | |
-- or similar apps. |
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
-- OmniFocus (or many other apps) to Pomodoro App for iPad | |
-- This script practically takes text that's on your clipboard | |
-- and generates a Pomodoro App for iPad compatible JSON file | |
-- to import into the app. (using Dropbox) | |
-- | |
-- I'm using it with OmniFocus, where copied tasks remain | |
-- on the clipboard as lines of text, basically. | |
-- | |
-- Created by Andreas on 2011-02-17 | |
-- http://www.macosxscreencasts.com |
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
set currentHour to hours of (current date) | |
set currentMinute to minutes of (current date) | |
if (currentHour ≥ 0) and (currentHour < 10) then | |
set currentHour to "0" & currentHour | |
end if | |
if (currentMinute ≥ 0) and (currentMinute ≤ 7) then | |
set currentMinute to "00" | |
else if (currentMinute > 7) and (currentMinute ≤ 23) then |
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
# Moving to a new location. | |
# This can actually be done in Nautilus as well. | |
mv ~/.minecraft/ /mnt/mythumbdrive/ | |
# Link back to the original location. | |
# Note how the last part needs to be the same location as in the previous command. | |
# ~ is short for /home/YOURUSER | |
ln -s /mnt/mythumdrive/minecraft/ /home/YOURUSER/.minecraft |
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
mkdir $HOME/Desktop/AppIcons/ | |
for CURRENTAPP in "$@"; do | |
APPDIR="$1" | |
ICON=`defaults read "$APPDIR/Contents/Info" CFBundleIconFile|sed -e 's/\.icns$//'` | |
ICONFILE="$APPDIR/Contents/Resources/$ICON.icns" | |
APPNAME=`basename "$APPDIR" .app` | |
OUTFILE="$HOME/Desktop/AppIcons/${APPNAME}.icns" | |
cp -f "$ICONFILE" "$OUTFILE" | |
shift |
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
srand # seed random | |
require 'csv' | |
wordArray = Array.new | |
definitionArray = Array.new | |
if File.exists?("/Users/zettt/Archive/Vocab/idioms.csv") | |
CSV.open('/Users/zettt/Archive/Vocab/idioms.csv', 'r') do |row| | |
# p row[1] |
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 not (exists process "iTunes") then return | |
end tell | |
tell application "iTunes" | |
tell playlist "Rating = 5" | |
set trackCount to count of tracks | |
set randomTrackNumber to random number from 1 to trackCount | |
set trackTitle to name of track randomTrackNumber | |
set trackArtist to artist of track randomTrackNumber |
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
import webbrowser | |
import urllib | |
# omnifocus:///add?name=[prompt]¬e=[prompt] | |
omnifocus_url = "omnifocus:///add?" | |
task_name_url = "name=" | |
note_url = "note=" | |
# input | |
prompt = "> " |
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
(* | |
No color = 0 | |
Orange = 1 | |
Red = 2 | |
Yellow = 3 | |
Blue = 4 | |
Purple = 5 | |
Green = 6 | |
Gray = 7 | |
*) |
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
set wrapStart to system attribute "KMPARAM_WrapStart" -- as Unicode text | |
set wraptext to system attribute "KMPARAM_Text" -- as Unicode text | |
set wrapEnd to system attribute "KMPARAM_WrapEnd" -- as Unicode text | |
return wrapStart & wraptext & wrapEnd |