This file contains hidden or 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
# 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' |
This file contains hidden or 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
(* INSERT MARKDOWN LINKS OF CURRENT PAGE OF SKIM PDF INTO TEXTMATE | |
-- created by Stephen Margheim | |
-- 06 July 2013 | |
-- open source | |
*) | |
tell application "Skim" |
This file contains hidden or 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
#!/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" |
This file contains hidden or 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
# 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) |
This file contains hidden or 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
#!/usr/local/bin/python | |
import requests | |
import re | |
import keychain | |
######## | |
# Configure these settings | |
username = '[email protected]' | |
mypass = keychain.get_password('instapaper', username) |
This file contains hidden or 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 os | |
import re | |
import sys | |
vcf_file = sys.argv[1] | |
def parse_file(infile): | |
card = '' | |
for line in infile: | |
if line.startswith('BEGIN:VCARD') and card.endswith('END:VCARD\r\n'): |
This file contains hidden or 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
<!-- You are probably already familiar with the possibility of hosting static websites on Amazon S3. | |
If not you should read this great tutorial by Chad Thompson: http://chadthompson.me/2013/05/06/static-web-hosting-with-amazon-s3/. | |
One common problem is that while being static your website still needs a contact form. | |
Here's a solution for this problem using Newman API (http://www.newmanapi.com). --> | |
<html> | |
<body> | |
<!-- First we set the 'action' attribute of <form> to point to Newman API --> | |
<form method="post" action="http://submit.newmanapi.com/" > | |
<!-- Now we create our input elements as we would in any other form --> |
This file contains hidden or 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
javascript:window.location='drafts://x-callback-url/create?text=text%3D%22'+encodeURIComponent(document.title)+'%22%20url%3D%22'+encodeURIComponent(location.href)+'%22&action=opml' |
This file contains hidden or 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
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
This file contains hidden or 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
#!/bin/bash | |
# Original post at http://n8henrie.com/2012/12/pinboard-backups-with-curl-and-launchd/ | |
curl -k -u "[username]:[password]" "https://api.pinboard.in/v1/posts/all?format=json" -o "/Users/[username]/Dropbox/[pathToBackup]/[filename].json" |
NewerOlder