Last updated: 2014-12-25
mdfind -attr kMDItemContentType "kMDItemContentType == '*'" -onlyin . | awk -F"kMDItemContentType =" '{print $2}' | sort | uniq -c | sort -r
from BeautifulSoup import BeautifulSoup as Soup | |
import urllib | |
raw_page = urllib.urlopen('http://www.sfrandonneurs.org/home.htm') | |
soup = Soup(raw_page) | |
class MarkdownTable: | |
@staticmethod |
import feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
import feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
import feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
Decode text from the clipboard
launch://clipboard/convert?format=urldecode
import console | |
import sys | |
import webbrowser | |
import urllib | |
base = "launchpro-messaging://" | |
to = "?to=" | |
xcb = 'x-callback-url/' | |
body = "&body=" | |
success = '&x-success=' |
import clipboard | |
import webbrowser | |
cb_contents = clipboard.get() | |
if cb_contents.startswith('http'): | |
webbrowser.open('safari-' + cb_contents) | |