Skip to content

Instantly share code, notes, and snippets.

View bretcarmichael's full-sized avatar

Bret Carmichael bretcarmichael

View GitHub Profile
@joeworkman
joeworkman / swap-stacks.sh
Created March 30, 2019 16:34
This script will swap between Stacks 3 and 4. You will need to configure the `rwfolder` to be the location of your RapidWeaver addons. You will also need to create `tgz` archives of the Stacks 3 and 4 plugins so that they can be swapped. This script will always archive the plugins with every swap. This allows you to update the plugins to new ver…
#!/bin/bash
rwfolder=~/Library/Mobile\ Documents/com\~apple\~CloudDocs/RapidWeaver
cd "$rwfolder"
stacks=Stacks.rapidweaverplugin
plist=$stacks/Contents/Info.plist
version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$plist" | cut -f1 -d.`
@joeworkman
joeworkman / upgrade_sendy.sh
Created March 21, 2019 18:55
This upgrades the version of Sendy installation for you. It creates a symlink from public_html to the actual version that you are running live. The public_html folder is doc root.
#!/usr/bin/zsh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 OLD_VERSION NEW_VERSION" >&2
exit 1
fi
export OLD=$1
export NEW=$2