Skip to content

Instantly share code, notes, and snippets.

@dceddia
dceddia / markdown-to-email.sh
Created September 7, 2021 18:05
Drop this in your .zshrc/.bashrc, copy some Markdown to the clipboard, and run `mkemail`. Paste the HTML wherever you want. Requires `pandoc` installed (brew install pandoc).
# Take a Markdown email from the clipboard or a file and turn it into HTML
function mkemail() {
# Either read from clipboard (default) or read from a file
if [[ -z $1 ]]; then
content=`pbpaste`
echo "Reading from clipboard"
else
content=`cat $1`
echo "Reading from file '$1'"
fi
@dceddia
dceddia / cknav.js
Created September 29, 2021 13:55
ConvertKit - revert back to the old nav bar.
// ==UserScript==
// @name CK - switch to the old nav
// @namespace Violentmonkey Scripts
// @match https://app.convertkit.com/*
// @grant none
// @version 1.0
// @author -
// @description Changes ConvertKit nav bar back to the old style, where each page has a link
// ==/UserScript==
@dceddia
dceddia / ck-hide-unsubs.js
Last active February 14, 2022 19:27
Hide unsubscribers in ConvertKit (or replace them with a "% Stayed" instead)
// ==UserScript==
// @name CK - Hide or replace unsubs
// @namespace Violentmonkey Scripts
// @match https://app.convertkit.com/*
// @grant none
// @version 1.0
// @author -
// @description Hides the Unsubscribers number on broadcasts, or replaces it with the percentage of people who stayed.
// ==/UserScript==