Skip to content

Instantly share code, notes, and snippets.

@wgmyers
wgmyers / drone.rb
Created September 6, 2023 23:43
Play a drone on the given note for five minutes
#!/usr/bin/env ruby
# drone.rb
# Take a note on the command line
# Play a drone on that note for LENGTH seconds or until stopped
# See https://muted.io/note-frequencies/
NOTES = {
'G' => 196.0,
@wgmyers
wgmyers / ubuntu-motd-figlet.sh
Created January 13, 2020 09:46
Add Figlet To Ubuntu MOTD
#!/bin/bash
FIGLET=/usr/bin/figlet
HOSTNAME=/proc/sys/kernel/hostname
MOTDFILE=/etc/update-motd.d/05-figlet
# Sanity checks
if [[ $EUID -ne 0 ]]; then
echo "Run script as root"
exit 1
#!/bin/bash
# fix-beriah-flac.sh
# Bash shell script to fix tags in Book of Beriah flac zip
############
# WARNING! #
############
#
# USE OF THIS SCRIPT IS ENTIRELY AT YOUR OWN RISK!