Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
computerz

Nathan Knowler knowler

👾
computerz
View GitHub Profile
View regolith.sh
#!/bin/bash
# Regolith aka Un-Bedrock
# "But what if we need to hand it off to another agency?" No more!
# This script converts a Bedrock site to a normal WordPress structure.
# Run it from the root of a Bedrock project.
# Created by Nathan Knowler and Daniel Roe
echo "Converting Bedrock to a normal WordPress file structure..."
View wp-active-theme.sh
theme() { cd $(wp theme path)/$(wp option get stylesheet | cut -d/ -f1) }
View mp3these.sh
mp3these () {
mkdir -p mp3-320
for input in "$@"
do sox -S $input -C 320 "mp3-320/${input%.*}.mp3"
done
}
View flacdown.sh
flacdown () {
mkdir -p converted
for input in "$@"
do sox -S $input -r 44100 -b 16 "converted/$(basename $input)"
done
}
View eject.sh
eject () {
if [ -z "$1" ]; then
echo "No drive specified."
else
dot_clean "/Volumes/$1"
diskutil unmount "$1"
fi
}
View keybase.md

Keybase proof

I hereby claim:

  • I am knowler on github.
  • I am knowler (https://keybase.io/knowler) on keybase.
  • I have a public key whose fingerprint is 68DB B663 00FD 3260 850E 2440 3B3A 57CE 9971 992F

To claim this, I am signing this object: