Skip to content

Instantly share code, notes, and snippets.

View wtfaremyinitials's full-sized avatar

Will Franzen wtfaremyinitials

View GitHub Profile
async function* openFifo(path) {
while(true) {
let file = await Deno.open(path, 'r')
let data = await Deno.readAll(file)
yield data
}
}
#!/usr/bin/env -S deno run --allow-run --allow-write
import sh from 'https://denopkg.com/wtfaremyinitials/deno-shell-tag/mod.js'
// TODO: integrate clubhouse api for ticket titles, blockers, and today
const LOW_MINUTES_THRESHOLD = 10
const SECONDS_TO_MINUTES = 1 / (1000 * 60)
const IGNORE_TAGS = ['billable', 'pingthings', 'standup', 'work']
const TICKET_REGEX = /ch(\d{4})/
#!/bin/bash
# speedtest.sh [host]
ssh $1 iperf3 -s > /dev/null 2>&1 & sshpid=$$
sleep 5
iperf3 -c $1
kill $sshpid