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
// ==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== |
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
# 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 |
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
/* Generate colors using: `plutil -convert json` in your terminal */ | |
const col = [] // run your .itermcolors file through the above parser and replace the array with the output | |
function componentToHex(c) { | |
const hex = c.toString(16) | |
return hex.length === 1 ? `0${hex}` : hex | |
} | |
const mapping = { | |
'terminal.background':'Background Color', |