Skip to content

Instantly share code, notes, and snippets.

View rnkn's full-sized avatar

Paul W. Rankin rnkn

View GitHub Profile
@rnkn
rnkn / emacs.plist
Last active May 24, 2021 13:10
How to run Emacs via launchd in macOS
<?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>Label</key>
<string>YOURDOMAIN.emacs</string>
<key>Disabled</key>
<false/>
<key>EnvironmentVariables</key>
<dict>
@rnkn
rnkn / Portfile
Created January 23, 2021 06:02
mpd 0.22.3 MacPorts Portfile
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup meson 1.0
PortGroup legacysupport 1.0
name mpd
# note - versions 0.21.x and beyond require meson, and will require considerable
#titlebar {
-moz-box-ordinal-group: 2;
}
#TabsToolbar .toolbar-items {
background: linear-gradient(rgb(215,215,215), rgb(205,205,205));
}
#PlacesToolbar .toolbarbutton-icon {
visibility: collapse;
.screenplay {
font-family: Courier Prime;
font-size: 12pt;
line-height: 1;
max-width: 6in;
margin: 1em auto;
-webkit-text-size-adjust: none;
}
.screenplay h1, h2, h3, h4, h5, h6 {
@rnkn
rnkn / hml.el
Last active August 9, 2018 16:35
(defun toggle-hide-mode-line ()
"Toggle mode-line visibility in current buffer."
(interactive)
(if mode-line-format
(setq-local mode-line-format nil)
(kill-local-variable 'mode-line-format)))
(defalias 'hml 'toggle-hide-mode-line)
@rnkn
rnkn / Nicholl_Fellowship_sample.txt
Created January 2, 2018 07:49
Nicholl Fellowship sample plain text export from Fountain Mode
For A Few Days More
written by
April Rider
April Rider
999 George Kaplan St NNW
Hitchcock, SD 57000
@rnkn
rnkn / Nicholl_Fellowship_sample.fdx
Last active January 2, 2018 07:48
Nicholl Fellowship sample Final Draft export from Fountain Mode
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<FinalDraft DocumentType="Script" Template="No" Version="1">
<Content>
<Paragraph Type="Action" StartsNewPage="">
<Text>FADE IN:</Text>
</Paragraph>
<Paragraph Number="1" Type="Scene Heading" StartsNewPage="">
<Text>INT. DRISKILL HOTEL SEMINAR ROOM - DAY</Text>
</Paragraph>
<Paragraph Type="Action" StartsNewPage="">
@rnkn
rnkn / feed.xml
Last active December 25, 2017 12:25
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>
@rnkn
rnkn / retinarize-icon.sh
Last active April 17, 2017 15:26
Script to convert PNG to Retina icon
#! /usr/bin/env bash
if [[ $(file "$1") =~ "PNG image data, 1024 x 1024" ]]
then echo -e "Input file:\t$1"
else echo "Error: Input file must be a PNG image, 1024 x 1024 pixels"
exit 1
fi
png=$(basename "$1")
iconset="${png%.*}.iconset"
#! /usr/bin/env bash
eval $(/usr/libexec/path_helper)
source "${HOME}/.bashrc"
red=$(tput setaf 1)
green=$(tput setaf 2)
reset="\e[0m"
DATA=$(curl --silent https://api.bitfinex.com/v1/pubticker/btcusd)
HIGH=$(echo $DATA | jq ".high" | tr -d \")