This file contains 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 | |
use strict; |
This file contains 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
-- OmniFocus Filterer -- toggle Active and Available in Context or Project Mode. | |
-- Michael Tofias 2012-06-27 | |
-- https://gist.github.com/3008488 | |
set theList to {"1 Active and Available"} | |
set theList to theList & {"2 Active"} | |
set theList to theList & {"3 Available"} | |
choose from list (theList) with prompt "Choose a filter toggle:" with title "OmniFocus Filterer" | |
set myAnswer to result as text |
This file contains 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 |
This file contains 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 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 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 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 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 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 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; |
OlderNewer