Skip to content

Instantly share code, notes, and snippets.

@justjake
Last active December 16, 2015 14:20
Show Gist options
  • Save justjake/5448246 to your computer and use it in GitHub Desktop.
Save justjake/5448246 to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
APP="/Applications/CrashPlan.app"
CONFIG="/Contents/Resources/Java/conf/ui.properties"
unlink-prop() {
rm "$APP/$CONFIG"
}
link-prop() {
ln -s "$APP/$CONFIG.$1" "$APP/$CONFIG"
}
if [ -z "$1" ] ; then
echo "Please supply a Crashplan host config"
exit 1
fi
# set the config
unlink-prop
link-prop $1
# launch the GUI
open $APP
#Fri Dec 09 09:50:22 CST 2005
#serviceHost=127.0.0.1
#servicePort=4200 # 4243 is the default
#pollerPeriod=1000 # 1 second
#connectRetryDelay=10000 # 10 seconds
#connectRetryAttempts=3
#showWelcome=true
#font.small=
#font.default=
#font.title=
#font.message.header=
#font.message.body=
#font.tab=
#Fri Dec 09 09:50:22 CST 2005
serviceHost=192.168.0.1
#pollerPeriod=1000 # 1 second
#connectRetryDelay=10000 # 10 seconds
#connectRetryAttempts=3
#showWelcome=true
#font.small=
#font.default=
#font.title=
#font.message.header=
#font.message.body=
#font.tab=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment