Skip to content

Instantly share code, notes, and snippets.

@gordonmeyer
gordonmeyer / Turn off bullshit features.kmmacros
Created November 13, 2022 17:16
Turns off Ulysses app Counter and Markup Bar
<?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>
<?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 October 14, 2021 16:21
Clipboard HTML to MarsEdit Post (Keyboard Maestro)
<?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>
@gordonmeyer
gordonmeyer / testing.md
Created May 21, 2014 15:04
Just a test

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 June 18, 2013 20:14
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
@gordonmeyer
gordonmeyer / webcam_statusboard.html
Last active August 1, 2017 21:45
A simple Javascript-based reload of a webcam for use with Status Board.
<!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">
<?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 December 15, 2015 08:19
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…
#!/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 January 17, 2013 23:24
Keyboard Maestro macro for looking up a word on Thsrs (www.ironicsans.com/thsrs)
<?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>