Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
[ "${1}" ] && {
safe networks add "${1}" "https://sn-node.s3.eu-west-2.amazonaws.com/testnet_tool/"${1}"/network-contacts"
safe networks switch "${1}"
} || echo "no input given - safenet-swtchto testnet-name"
exit 0
@PhilosopherRex
PhilosopherRex / isu
Last active January 7, 2023 15:24
script to continuously upload random data to the safe network testnet and to verify data afterwards
#!/bin/bash
# isu -- infinite safe upload
msg() {
printf '%s\n' "${0##*/}>> ${1}" | tee -a "test.log"
}
verify_put() {
safeURL=$(echo "${3}" | grep -o ' | safe://[^ ]*' | grep -o 'safe://[^ ]*')
@PhilosopherRex
PhilosopherRex / maidsafe.sh
Last active January 9, 2016 22:36 — forked from philiprhoades/maidsafe.sh
Script for pulling, building and testing MaidSafe code
#!/bin/bash
######################################## - USER DEFINITIONS
# if you use a proxy add it here otherwise leave blank
gitProxy=
# make sure there is a slash at the end of your installDir definition
installDir="/opt/safenet/src/"
# do you want to build and test? Leave blank if not
# show build and test output via "xterm" (windows),
# "roxterm" (tabs), or "logOnly" --> note case