This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == '' ]; then echo "Please provide a hostname to connect."; exit 1; fi | |
if [ $(whoami) != 'root' ]; then echo "Need to run with sudo"; exit 1; fi | |
host=$1 | |
# get secrets | |
remote_secret=$(ssh root@$host "cat /var/lib/crashplan/.ui_info | cut -d',' -f2") | |
local_secret=$(cat /Library/Application\ Support/CrashPlan/.ui_info | cut -d',' -f2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if (( $# < 2 )); then | |
echo "Usage: $0 chroot_dir program [program ...]" | |
exit 1 | |
else | |
CHROOT="$1"; shift | |
fi | |
function same_file() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-12-07T15:02:02.048Z","extensionVersion":"v3.1.2"} |