Skip to content

Instantly share code, notes, and snippets.

@n8henrie
n8henrie / instapaperkindle.py
Created July 24, 2013 04:11
Manually trigger Instapaper to send your unread queue to your Kindle (assuming you have your settings set up at Instapaper.com).
#!/usr/local/bin/python
import requests
import re
import keychain
########
# Configure these settings
username = '[email protected]'
mypass = keychain.get_password('instapaper', username)
@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)
@pavel-sakun
pavel-sakun / QLTextFiles.sh
Last active June 6, 2025 21:03
Use OSX Finder Quicklook to preview all plain text files. Handy shortcut for actions need to install QLStephen plugin for OSX Finder's QuickLook. Please find info on QLStephen at https://github.com/whomwah/qlstephen Usage: curl https://raw.github.com/gist/6192519 | sh
#!/bin/bash
curl -O http://cloud.github.com/downloads/whomwah/qlstephen/QLStephen.qlgenerator.zip
unzip QLStephen.qlgenerator.zip
echo "Please enter your password when asked (the one sudo asks you for usuqlly). It's needed to copy some files to /Library/QuickLook"
sudo mv -f QLStephen.qlgenerator /Library/QuickLook
rm QLStephen.qlgenerator.zip
qlmanage -r
echo "We're done. Have fun and do not forget to give a credit to QLStephen's author Duncan@https://github.com/whomwah"
@fractaledmind
fractaledmind / Insert Markdown Links for current Skim page (DEVONthink URL)
Last active April 8, 2020 00:14
REQUIRED PROGRAMS: -- Skim -- TextMate (I have alternate code for TextEdit as well) -- DEVONthink This script is a modification of a script by John Sidiropoulos at http://organognosi.blogspot.com. This script offers you a dialog box with two options: (1) insert a Markdown formatted Inline Link to the current page of the pdf you are viewing in Sk…
@timsutton
timsutton / gist:b1affb996a2aa60b7927
Last active August 13, 2024 20:00
Pulling appcast URLs from brew-cask: about 500 so far
# list all local cask files and find the 'appcast' stanza
# - assumes you have brew cask installed:
# brew install caskroom/cask/brew-cask
for cask in `ls /usr/local/Library/Taps/caskroom/homebrew-cask/Casks | awk -F"." '{print $1}'`; do
cast=$(brew cask cat ${cask} | grep appcast | awk '{print $2}')
[ -n "${cast}" ] && echo "${cask}: ${cast}" | grep http
done
a-better-finder-attributes: 'http://www.publicspace.net/app/signed_abfa5.xml'
a-better-finder-rename: 'http://www.publicspace.net/app/signed_abfr9.xml'