Skip to content

Instantly share code, notes, and snippets.

@stefanbenten
stefanbenten / reupload.sh
Last active July 23, 2019 21:45
Reupload Script to V2 network with two accounts
#!/bin/bash
# USAGE: ./reupload.sh <BUCKET-ID> <NEW-BUCKET-ID>
# Bucket-ID's are optional, if not provided the entire account is reuploaded
# Account Email Addresses
username1=test@storj.io
username2=test2@storj.io
# Account Passwords
password1=passw0rd
password2=passwOrd
@stefanbenten
stefanbenten / Satellite-Wipe.md
Last active July 16, 2019 14:30
Satellite-Wipe Script Pre Beta

DROP PointerDB from MasterDB

DROP FUNCTION list_directory_reverse(BYTEA, BYTEA, BYTEA, INTEGER);
DROP FUNCTION list_directory(BYTEA, BYTEA, BYTEA, INTEGER);
DROP TYPE path_and_meta;
DROP FUNCTION component_increment(BYTEA, INTEGER);
DROP FUNCTION bytea_increment(BYTEA);
DROP FUNCTION truncate_after(BYTEA, INTEGER, INTEGER);
DROP VIEW pathdata_pretty;
DROP TABLE pathdata;
#!/bin/bash
BUCKET="srv11"
FILE="500M.data"
FILEPATH="/root/load-test"
THREAD=`date +%Y%m%d%H%M%S`
LOG="logs/$THREAD.log"
DEBUG="trace"
UPLOADLOG="logs/$THREAD-detailed.log"
PARAMS="--config-dir ./uplink --log.level debug --log.output $UPLOADLOG --debug.trace-out $DEBUG/$THREAD/$i-up.trace --profile.cpu $DEBUG/$THREAD/$i-up-cpu.profile --profile.mem $DEBUG/$THREAD/$i-up-mem.profile"
#!/bin/bash
# USAGE: ./reupload.sh (<BUCKET-ID>)
# Bucket-ID is optional, if not provided the entire account is reuploaded
passphrase=TEST
storage="./files/"
bpath=$(pwd)
file="./bucket.list"
reuploadbucket() {
#!/bin/bash
#
# Prerequisite: go and tmux installed and ssh-keys installed on this machine
#
IP1=10.0.20.10 #This is the bootstrap/main address and localhost youre running on
IP2=10.0.20.11
IP3=10.0.20.12
IP4=10.0.20.13
@stefanbenten
stefanbenten / keybase.md
Created January 11, 2018 18:55
KeyBase GPG Prove

Keybase proof

I hereby claim:

  • I am stefanbenten on github.
  • I am stefanbenten (https://keybase.io/stefanbenten) on keybase.
  • I have a public key whose fingerprint is E304 8E19 B15D 487F 6549 08AA 0442 0301 F706 2E47

To claim this, I am signing this object: