Skip to content

Instantly share code, notes, and snippets.

@rmchale
rmchale / Makefile
Last active December 1, 2021 18:40
Makefile template borrowed from MIke Small
.PHONY: clean init plan apply format lint validate
## hello
hello:
@echo "hello world"
# https://stackoverflow.com/a/25668869
# https://stackoverflow.com/a/19107231
ifeq (, $(shell which fzf))
# simple, brief make rules help generated from comments in Makefile.
@rmchale
rmchale / mkver.conf
Created January 8, 2022 17:40
mkver.conf for main
# prefix for tags in git
tagPrefix: v
# defaults are used if they are not overriden by a branch config
defaults {
# whether to really tag the branch when `git mkver tag` is called
tag: false
# message for annotated version tags in git
tagMessageFormat: "release {Tag}"
# format tring for the pre-release. The format must end with {PreReleaseNumber} if it is used.
# Examples:
@rmchale
rmchale / draftist_extension.js
Last active January 20, 2025 18:40
An extension to draftist to quick add tasks to a specific project
/**
* Ryan_quickAddLines - This action creates a new task for each line in the currently open Draft.
*
* @param {String} text the text which lines should be added as tasks to Todoist
* @param {String} project the project to add the task
* @return {Boolean|Number} false when adding fails, task number when adding succeeded
*/
function Ryan_quickAddLines(text, project = null) {
let todoist = new Todoist()
let lines = text.split("\n");