Skip to content

Instantly share code, notes, and snippets.

@derat
derat / dump_songbird_plays.py
Created January 24, 2023 01:55
Python script to dump playback history from Songbird/Nightingale
#!/usr/bin/env python3
# dump_songbird_plays.py - Dumps Songbird/Nightingale playback history.
#
# Written in 2023 by Daniel Erat.
#
# To the extent possible under law, the author has dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty.
#
@derat
derat / resize_image
Created August 29, 2022 21:20
Ruby script to resize images using ImageMagick's convert program
#!/usr/bin/ruby
require 'optparse'
require 'shellwords'
def die(msg)
$stderr.puts msg
exit 1
end
@derat
derat / install_chromedriver.sh
Created April 13, 2022 13:09
Linux shell script to install the current version of ChromeDriver
#!/bin/sh -e
# This implements https://chromedriver.chromium.org/downloads/version-selection
# to install the latest version of ChromeDriver that's compatible with the
# current google-chrome binary.
# Location where the chromedriver executable will be installed.
# Change this line if you'd like to install it somewhere else.
# This is a symlink; version-suffixed binaries live alongside it.
destlink=${HOME}/local/bin/chromedriver
From 1c79a506deda796d6280b0648697bd4f2b1b181b Mon Sep 17 00:00:00 2001
From: Daniel Erat <omitted>
Date: Sat, 11 Dec 2021 18:54:23 -0400
Subject: [PATCH] Make SMTP notifier include additional info from build tags.
Update the SMTP notifier to include more details in the
email messages that it sends. Subjects now look like
"[project-id] trigger-name SUCCESS (short-build-id)", and
the table in the body also includes the trigger name,
commit, build ID, and start and end times.