hyperweb is waiting for you
This commit is contained in:
parent
e273f9ca95
commit
ea312009b1
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
################################################################################
|
|
||||||
# Author: Fred (support@qo-op.com)
|
|
||||||
# Version: 0.1
|
|
||||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
||||||
################################################################################
|
|
||||||
# Activate SUPPORT MODE: open ssh over IPFS
|
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|
||||||
if [[ -f $MY_PATH/.install/.GPATH ]]; then source $MY_PATH/.install/.GPATH; fi
|
|
||||||
if [[ -f $MY_PATH/../.install/.GPATH ]]; then source $MY_PATH/../.install/.GPATH; fi
|
|
||||||
|
|
||||||
IPFSNODEID=$(ipfs id -f='<id>\n')
|
|
||||||
|
|
||||||
su $YOU -c "ipfs p2p close --all"
|
|
||||||
su $YOU -c "ipfs p2p listen /x/ssh /ip4/127.0.0.1/tcp/22"
|
|
||||||
su $YOU -c "ipfs p2p listen /x/http /ip4/127.0.0.1/tcp/80"
|
|
||||||
su $YOU -c "ipfs p2p listen /x/https /ip4/127.0.0.1/tcp/443"
|
|
||||||
su $YOU -c "ipfs p2p ls"
|
|
|
@ -1,38 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
################################################################################
|
|
||||||
# Author: Fred (support@qo-op.com)
|
|
||||||
# Version: 0.1
|
|
||||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
||||||
################################################################################
|
|
||||||
# Find files from Passenger ZenTAG and publish to Nextcloud
|
|
||||||
# Needs ipfslink decoding key contract can be run!!!
|
|
||||||
################################################################################
|
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|
||||||
ME="${0##*/}"
|
|
||||||
|
|
||||||
echo "BREAK POINT" && exit 1
|
|
||||||
|
|
||||||
ipfsnodeid=$(ipfs id -f='<id>\n')
|
|
||||||
[[ ! -f ~/.ssb/secret.dunikey ]] && $MY_PATH/tools/secret2dunikey.sh
|
|
||||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
|
||||||
|
|
||||||
# ADDING A FILE
|
|
||||||
# ipfs files cp /ipfs/<cid> /nextcloud/
|
|
||||||
|
|
||||||
# GET All #Swarm0 Passenger filenames
|
|
||||||
cat ~/.zen/ipfs_swarm/.Qm*/TAG/*/_tag.passenger.filename > ~/.zen/cache/passengers.filename.list
|
|
||||||
|
|
||||||
|
|
||||||
# Get ipns ZenTag link, open it
|
|
||||||
for filename in $(cat ~/.zen/cache/passengers.filename.list); do
|
|
||||||
INSWARM=$(grep -Rwl "$filename" ~/.zen/ipfs_swarm/.Qm*/TAG/*/_tag.passenger.filename | tail -n 1 | cut -f 6 -d '/')
|
|
||||||
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
# ipfs files ls /nextcloud
|
|
||||||
# ipfs files stat /nextcloud/filename
|
|
||||||
|
|
||||||
## LOG INTO SSB ??? TODO
|
|
||||||
# sbotc publish '{"type":"zenlog","text":"'"$ME"'"}'
|
|
|
@ -1,18 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
{
|
|
||||||
ws_host='http://localhost:8989'
|
|
||||||
ssb_npm_registry_blob="&ICm1gBw79PitW1qUuq5jIJJtjyfkfPfpuHQfPeGpmJ4=.sha256"
|
|
||||||
pkg_name=ssb-npm
|
|
||||||
pkg_version=2.0.1
|
|
||||||
pkg_msg=%/hNT8vXLGN9IoVUwLdSbw/9UgKjFI0AOnlQl/0129Tw=.sha256
|
|
||||||
|
|
||||||
dir=$(mktemp -d "${TMPDIR:-/tmp}/ssb-npm.XXXXXXXXX") &&
|
|
||||||
cd "$dir" &&
|
|
||||||
curl -s "$ws_host/blobs/get/$ssb_npm_registry_blob" | tar xz &&
|
|
||||||
./package/bootstrap/bin.js \
|
|
||||||
--ws-url "$ws_host" \
|
|
||||||
--branch "$pkg_msg" \
|
|
||||||
install -g "$pkg_name@$pkg_version"
|
|
||||||
cd -
|
|
||||||
rm -rf "$dir"
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
||||||
########################################################################
|
|
||||||
# ZEN CONTRACT TEMPLATE v0.1
|
|
||||||
########################################################################
|
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|
||||||
ME="${0##*/}"
|
|
||||||
|
|
||||||
{ # Only execute if entire script is read
|
|
||||||
|
|
||||||
# Send LOVE to _g1.node.creator
|
|
||||||
|
|
||||||
# Wait for SSB message containing _passenger.your_g1pub.crypt
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue