Skip to content

Instantly share code, notes, and snippets.

View postmark.js
await postmark.sendEmail({
From: '',
ReplyTo: `${req.body.xname} <${req.body.xemail}>`,
To: to,
Cc: '',
Subject: ` api submission to ${req.body.form} from ${req.body.xname}`,
HtmlBody: html,
TextBody: text,
MessageStream: 'outbound',
Headers: [
sudo apt-get update
sudo apt-get install --yes ca-certificates apt-transport-https wget
echo 'deb stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg
sudo apt update
sudo apt install --yes openjdk-8-jre-headless unifi
service unifi stop
ryanburnette /
Created Jun 30, 2021
set timezone to us/east in ubuntu 20.04
set -u
sudo timedatectl set-timezone America/New_York
View .vimrc
Plugin 'ctrlpvim/ctrlp.vim.git'
let g:ctrlp_show_hidden = 1
let g:ctrlp_custom_ignore = { 'dir': '\v[\/](\.git|node_modules|rubygems|\.sass-cache|\.vagrant|bower_components|build|tmp|vendor|public.built)$' }
set wildignore+=.DS_Store
set wildignore+=*/node_modules/*
set wildignore+=*/bower_components/*
ryanburnette /
Last active Apr 6, 2021 — forked from petervanderdoes/
zfs health alerts in bash with mailgun api alert
#!/usr/bin/env bash
# max capacity % before getting capacity alert
ryanburnette / lcwipe
Created Oct 7, 2020
life cycle controller wipe
View lcwipe
winrm i LCWipe -u:root -p:calvin -r: -SkipCNcheck -SkipCAcheck -encoding:utf-8 -a:basic
ryanburnette / async-await-experimentation.js
Created Aug 20, 2020
playing around with async/await... it's not as useful as I had hoped it would be
View async-await-experimentation.js
var _foo = 0;
async function foo() {
return new Promise(function (resolve) {
setTimeout(function () {
}, 1000);
ryanburnette / Caddyfile
Last active May 4, 2021
caddy cache strategy
View Caddyfile
(asset-paths) {
path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js
(cache) {
@content {
not {
import asset-paths
header @content cache-control max-age=0
ryanburnette / gist:9c6898493336f849e8280df7c3fd101b
Created Aug 16, 2020
markdownify for getting consistent results when you need a p tag on a single paragraph
View gist:9c6898493336f849e8280df7c3fd101b
{{- $markdown := .Inner | markdownify -}}
{{ if not ( findRE "<[h|p][^>]*>" $markdown ) }}
<p>{{ $markdown }}</p>
{{ else }}
{{ $markdown }}
{{ end }}