Skip to content

Instantly share code, notes, and snippets.

View davidnunez's full-sized avatar

David Nuñez davidnunez

View GitHub Profile
@brettkelly
brettkelly / GetMessageUrl
Created November 8, 2011 21:43
Get the message:// URL of the selected message in Mail.app
tell application "Mail"
set selectedMsgs to selection
repeat with theMsg in selectedMsgs
set message_url to "message://%3c" & (the message id of theMsg) & "%3e"
tell application "Finder"
set the clipboard to message_url as text
end tell
exit repeat -- leave the repeat loop after one pass
end repeat
end tell
@knutwalker
knutwalker / imdb_to_trakt.py
Created October 14, 2012 03:29
Migrate movies from a public watchlist from IMDb into your private watchlist on trakt.
#!/usr/bin/env python
import csv
import collections
import re
import json
import requests
@christopheranderton
christopheranderton / update-outdated-brew-casks.sh
Last active February 4, 2024 17:29
Upgrade outdated brew casks. One liner, and the ”official” way to do it without using different hacks or scripts. However, it does not really replace some scripts out there, as in-app updates is not seen by Homebrew.
# Upgrade / Update outdated casks installed.
# --------------------------------------------------------------------------------
# Looks for outdated casks and installs the the latest version.
# User data (like application preferences) is intact.
# Updated one liner (thanks Henrik242)
# --------------------------------------------------------------------------------
brew upgrade $(brew outdated --cask --greedy --quiet)