Skip to content

Instantly share code, notes, and snippets.

View qrkourier's full-sized avatar

Kenneth Bingham qrkourier

View GitHub Profile
@qrkourier
qrkourier / shufpad.sh
Last active December 3, 2016 05:12
Shuffle, pad with a random duration of silence, and concatenate a bunch of .mp3 files
#!/bin/bash -u
#
# [this lives here now](https://github.com/qrkourier/shufflepad-sound-machine/blob/master/bin/shufflepad.sh)
donames(){
find -mindepth 1 -maxdepth 1 -type f -iname '*.mp3' | egrep '\s' | \
while read pad;do
mv -v "$pad" $(sed -r 's/[-)(_ ]+//g'<<<"${pad#./}")
done
}
@qrkourier
qrkourier / ovirt-private-ca.md
Last active October 11, 2021 07:57
Install a Server Certificate For oVirt Manager UI

Install server certificates issued by a private CA in oVirt4 Manager and Host

  • generate a signing request on the system where oVirt Manager is running (the engine server)
openssl req -new -sha256 -key /etc/pki/ovirt-engine/keys/apache.key.nopass -out /tmp/engine.csr
  • Submit the CSR to the issuer and wait. Or, if you are the issuer and you happen to be using FreeIPA/IdM, you may issue the certificate with ipa-admintools. For example,
@qrkourier
qrkourier / equivalentdomains_stackexchange.rb
Last active December 3, 2016 05:12
find equivalent domain names for the Stack Exchange network of sites for LastPass account settings
#!/usr/bin/env ruby
#
# [this lives here now](https://github.com/qrkourier/stackdom/blob/master/bin/stackdom.rb)
#
# slurp some XML over HTTP and parse to find equivalent domain
# names for the Stack Exchange network of sites
#
# shell $ gem install xml-simple domainatrix
#

Keybase proof

I hereby claim:

  • I am qrkourier on github.
  • I am kourier (https://keybase.io/kourier) on keybase.
  • I have a public key whose fingerprint is 5489 E13F 8105 64DF 47FB 9841 B694 03FA 957C 5E46

To claim this, I am signing this object:

@qrkourier
qrkourier / 0_reuse_code.js
Created February 1, 2014 03:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash -eu
git filter-branch --env-filter '
# name, email, and date for author and committer are all set to the preferred
# values unless the override variable is empty or undefined.
# (see git-rewrite-tree(1))
#GIT_AUTHOR_NAME
#GIT_AUTHOR_EMAIL
#GIT_AUTHOR_DATE