Skip to content

Instantly share code, notes, and snippets.

View BreakerOfHalos's full-sized avatar

Sorcha BreakerOfHalos

  • Los Angeles, CA
  • 03:31 (UTC -07:00)
View GitHub Profile
javascript:window.location.href=window.location.href.replace("https://","ioc://");
@cliss
cliss / organize-photos.py
Created October 6, 2013 14:43
Photo management script. This script will copy photos from "~/Pictures/iPhone Incoming" into a tree the script creates, with folders representing month and years, and photo names timestamped. Completely based on the work of the amazing Dr. Drang; see here: http://www.leancrew.com/all-this/2013/10/photo-management-via-the-finder/ You can see more…
#!/usr/bin/python
import sys
import os, shutil
import subprocess
import os.path
from datetime import datetime
######################## Functions #########################
@ttscoff
ttscoff / short_titles.sh
Created August 29, 2013 02:19
Via @pilotmoon, the secret to shortening your popclip bar.
$ defaults write com.pilotmoon.popclip UseShortTitles -bool YES
$ killall PopClip && open -a PopClip
@tdhopper
tdhopper / URL to Day One
Last active December 20, 2015 13:39
Pythonista script for taking a URL on the clipboard, running it through Readability, then through Heck Yes Markdown, and finally dropping in Day One. Borrows heavily from http://www.macdrifter.com/2012/09/pythonista-trick-url-to-markdown.html
​import clipboard
import urllib2
import webbrowser
clipString = clipboard.get()
marky = 'http://heckyesmarkdown.com/go/?read=1&u='
queryString = marky + clipString
@hiilppp
hiilppp / sort.py
Last active February 8, 2019 13:02
Python script to sort lines of text in Pythonista and send them (back) to Drafts.
# To call script from Drafts, use the follwing URL as URL Action:
# <pythonista://sort?action=run&argv=[[draft]]>
import sys
import urllib
import webbrowser
a = sys.argv[1].split("\n")
a.sort(key=str.lower)
a = "\n".join(a)
@robmathers
robmathers / mkvconverter.py
Created July 16, 2013 03:05
Converts mkvs with h.264 video into m4v containers. Needs mp4box, mediainfo, ffmpeg and probably some other command line tools installed (most of which should be installable via homebrew).
#!/usr/bin/env python
import sys
import os
import subprocess
from pymediainfo import MediaInfo
from glob import glob
import shlex
from fractions import Fraction
import ssatosrt
@liangzan
liangzan / .Xresources
Created January 19, 2012 23:26
Xresources for configuring urxvt
! urxvt
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: yellow
URxvt*font: xft:inconsolata:size=10:antialias=true
URxvt*depth: 32
URxvt*borderless: 1
URxvt*scrollBar: false
URxvt*loginShell: true
Urxvt*secondaryScroll: true # Enable Shift-PageUp/Down in screen