forked from axiom-team/astroport
24 lines
886 B
Bash
Executable File
24 lines
886 B
Bash
Executable File
#!/bin/bash
|
|
################################################################################
|
|
# Author: Fred (support@qo-op.com)
|
|
# Version: 0.1
|
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
################################################################################
|
|
# Extract last ads
|
|
# Thank you @kimamila for cesium & gchange
|
|
# ES backend http://www.elasticsearchtutorial.com/spatial-search-tutorial.html
|
|
MY_PATH="`dirname \"$0\"`" # relative
|
|
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|
ME="${0##*/}"
|
|
|
|
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)
|
|
|
|
# ipfs files ls /nextcloud
|
|
# ipfs files stat /nextcloud/filename
|
|
|
|
|
|
## LOG INTO SSB ??? TODO
|
|
# sbotc publish '{"type":"zenlog","text":"'"$ME"'"}'
|