Skip to content

Instantly share code, notes, and snippets.

View searchAMZNfor.kmmacros
<?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">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>462901998.28961402</real>
<key>Macros</key>
@gordonmeyer
gordonmeyer / ClipHTML2MarsEdit.kmmacros
Last active Oct 14, 2021
Clipboard HTML to MarsEdit Post (Keyboard Maestro)
View ClipHTML2MarsEdit.kmmacros
<?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">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>652832276.61879897</real>
<key>Macros</key>
View testing.md

Test

I am considering hosting some notes here and this is just a post to figure out how this might work if I choose to go this direciton. Sorry for the noise, I'll delete it when I'm done. The idea is to provide some research notes here so that others can use them, add comments, or grab copies and create their own.

I need to look into the following things:

  • is there an implied or applied copyright?
  • what about custom URLs or domains?
  • Can they be organized or otherwise grouped together?
  • Should I maybe setup a separate account just for that project, if the answer above is "no"?
  • Is there a fee structure here I should participate in?
@gordonmeyer
gordonmeyer / Markdown Link from Safari.kmmacros
Created Jun 18, 2013
Keyboard Maestro v6.0 macro to create a Markdown link from the frontmost Safari window. See also: http://www.gordonmeyer.com/2013/06/keyboard-maestro-markdown-link-from-safari.html
View Markdown Link from Safari.kmmacros
View Link with Title from Safari.kmmacros
@gordonmeyer
gordonmeyer / webcam_statusboard.html
Last active Aug 1, 2017
A simple Javascript-based reload of a webcam for use with Status Board.
View webcam_statusboard.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>campage</title>
<meta name="generator" content="BBEdit 10.1">
</head>
<body onload="LoadNewImage()">
<script type="text/javascript" language="JavaScript">
View UrbanDictionaryLookup.kmmacro
<?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">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>IsActive</key>
<true/>
<key>Macros</key>
@gordonmeyer
gordonmeyer / imgref.sh
Last active Dec 15, 2015
This OS X bash script takes an image file as a parameter. The width and height of the image are identified, and a fully-qualified img tag is output. Note that the location of the image on the remote server is hardcoded and will need to be changed for your site. Read more about this script at: http://www.gordonmeyer.com/2013/03/a-script-to-automa…
View imgref.sh
#!/bin/bash
#gordonmeyer.com March 23, 2013
#usage: imgref filename
#output: <img> tag
#requires: OS X
#credits: http://superuser.com/questions/273059/get-pixel-dimensions-of-a-png-on-my-mac
filename=$1
if [ ! -f "$filename" ] ; then
@gordonmeyer
gordonmeyer / Thsrs Lookup.kmmacros
Created Jan 17, 2013
Keyboard Maestro macro for looking up a word on Thsrs (www.ironicsans.com/thsrs)
View Thsrs Lookup.kmmacros
<?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">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>IsActive</key>
<true/>
<key>Macros</key>
@gordonmeyer
gordonmeyer / GetTitle.py
Created Jan 2, 2013
This script is for use with Keyboard Maestro, as described at: http://www.gordonmeyer.com/2013/01/keyboard-maestro-make-link-with-title-from-clipboard.html It outputs the title of a webpage. The URL is passed via a Keyboard Maestro variable. This is a rather crude, but reliable, method of getting the title and does not require the installation o…
View GetTitle.py
#! /usr/bin/python
"""
brute force get title of web page
usage: getTitle.py url
Gordon Meyer January 1, 2013
www.gordonmeyer.com
"""
# modules used
import urllib2, urlparse, string, os