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 a markdown link for the active safari window | |
-- Get the info we need from Safari | |
tell application "Safari" | |
set t to name of current tab of window 1 | |
set U to URL of current tab of window 1 | |
end tell | |
set mLink to "[" & t & "](" & U & ")" | |
-- set mLink to "%snippet:slink%" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/usr/local/sbin</string> | |
</dict> | |
<key>Label</key> |
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
-- Manipulate and get the status of Zoom mute/unmute, and show that status using the app AnyBar | |
-- Uses AnyBar to show zoom audio status (https://github.com/tonsky/AnyBar) | |
-- | |
-- Takes one argument: | |
-- - toggle_zoom: Toggles the mute status and updates AnyBar red/green to reflect new status | |
-- - update_bar: Grabs the current mute status and updates AnyBar | |
-- | |
-- Anybar colors: | |
-- - Green: mic on | |
-- - Red: mic muted |
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
{ | |
"title": "Zoom audio toggle modification", | |
"rules": [ | |
{ | |
"description": "Eject key triggers two keyboard shortcuts", | |
"manipulators": [ | |
{ | |
"from": { | |
"consumer_key_code": "eject" | |
}, |
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
-- Move everything in Reminders app to Omnifocus | |
tell application "Reminders" | |
repeat with theReminder in (get reminders in list "Reminders" whose completed is false) | |
with timeout of 120 seconds | |
set success to true | |
set the newName to (the name of theReminder) as string | |
set the dueDate to the due date of theReminder |
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
;; Works in iTerm 2 | |
(define-key global-map "\e[1;2A" (kbd "S-<up>")) | |
(define-key global-map "\e[1;2B" (kbd "S-<down>")) | |
(define-key global-map "\e[1;2D" (kbd "S-<left>")) | |
(define-key global-map "\e[1;2C" (kbd "S-<right>")) |
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/env tclsh | |
# logtodayone.tcl | |
# James Sulak (http://www.jamessulak.com) | |
# Adapted from logtodayone.rb by Brett Terpstra (http://brettterpstra.com) | |
# Use and modify freely, attribution appreciated | |
# | |
# This script works with the Day One[1] command line utility | |
# It parses an input string for an exclamation point prefix to mark starred | |
# and/or a [date string] at the beginning to parse natural language dates |
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/sh | |
osascript <<END | |
tell app "Terminal" to do script "cd \"`pwd`\"" | |
tell app "Terminal" to activate | |
END |
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
/* | |
* This requires: restler | |
* To install, type 'npm install restler' | |
* Tested with node.js v0.6.14 | |
*/ | |
var util = require('util'); | |
var restclient = require('restler'); | |
var fxml_url = 'http://flightxml.flightaware.com/json/FlightXML2/'; |
NewerOlder