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/bin/python | |
# applescript.py v. 2014-09-18 | |
# based on applescript.py by Dr. Drang | |
# http://www.leancrew.com/all-this/2013/03/combining-python-and-applescript | |
import subprocess | |
def asrun(ascript): |
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
-- Get date the easy way with AppleScript | |
set theDate to do shell script "date +'%Y-%m-%d'" as string |
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
/* User CSS for Feedbin - Michael Tofias - 2014-08-22 */ | |
/* Feedbin is great, check it out: https://feedbin.com | |
But it's even better with three-shoved-into-two-columns | |
when in a portrait orientation. */ | |
@media all and (min-width: 767px) and (min-height: 900px){ | |
.entry-header h1 { | |
font-size: 130% !important; |
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/bin/php | |
# Hipster Ipsum for Alfred | |
# https://gist.github.com/tofias/9160634 | |
# using hipsteripsum.me (via API at hipsterjesus.com) | |
# based on https://github.com/sethlilly/Hipster-Ipsum-for-Coda | |
$COUNT = 1; # number of paragraphs 1-99 | |
$HTML = "false"; # or 'true' | |
$TYPE = "hipster-centric"; # or 'hipster-latin' |
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
-- Open the Open Recent File Menu in BBEdit | |
-- https://gist.github.com/tofias/8510931 | |
-- dedicated to the good Dr Drang: http://www.leancrew.com/all-this/2014/01/open-recent-macro-for-bbedit | |
tell application "BBEdit" | |
activate | |
tell application "System Events" | |
tell process "BBEdit" | |
tell menu bar 1 |
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
-- Get the Long URL for a Short URL | |
-- https://gist.github.com/tofias/8252138 | |
set theClipboard to the clipboard as string | |
set myScript to "curl -sIL " & theClipboard & " | grep ^[lL]ocation | awk 'END{print}' | tr '[:upper:]' '[:lower:]' | tr -d '[[:space:]]' | sed s/'location:'// | tr -d '\n' | pbcopy" | |
do shell script myScript | |
set theClipboard to the clipboard as string |
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 | |
# mess.sh for processing other things while using Marked.app (VERSION 2013-10-10) | |
# Michael Tofias http://tofias.net | |
# Grab the text off of stdin | |
THETEXT=$(cat); | |
# Run any scripts you might want to run, such as less (see http://lesscss.org) | |
lessc $MARKED_ORIGIN/styles.less > ~/Library/Application\ Support/Marked/Custom\ CSS/styles.css; |
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/bin/perl | |
# Description: http://daringfireball.net/2010/08/open_urls_in_safari_tabs | |
# License: See below. | |
# http://gist.github.com/507356 | |
# UPDATE for "Create and run the AppleScript" portion of Gruber's original script | |
# http://gist.github.com/1990793 | |
# | |
# UPDATE 2 for force opening in Google Chrome |
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
-- Make a BBEdit | |
-- Michael Tofias 2013-02-12 | |
-- https://gist.github.com/tofias/4773865 | |
set toPaste to the clipboard as Unicode text | |
tell application "BBEdit" | |
activate | |
make new document | |
if toPaste is not "" then |
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
drafts://x-callback-url/import_action?type=URL&name=Search%20in%20Pinboard&url=https%3A%2F%2Fm.pinboard.in%2Fsearch%2F%3Fquery%3D%5B%5Bdraft%5D%5D%26mine%3DSearch%2BMine |
NewerOlder