Why Nostr? What is Njump?
2024-07-03 00:53:14

npub1kt…8wkpm on Nostr: commit 30601ce0676a3cc0e4fe5545fc54fb3d13249f47 Author: @RandyMcMillan ...

commit 30601ce0676a3cc0e4fe5545fc54fb3d13249f47
Author: @RandyMcMillan <[email protected]>
Date: Sat Jan 27 10:47:07 2024 -0500

template/gnostr-commit

diff --git a/template/gnostr-commit b/template/gnostr-commit
index 2e880a81a..e536f04b7 100755
--- a/template/gnostr-commit
+++ b/template/gnostr-commit
@@ -9,6 +9,16 @@ WOBBLE=${gnostr-wobble:-}
#echo $WEEBLE
#echo $WOBBLE

+declare REPO
+REPO=$(pwd | grep -o '[^/]*$')
+## echo $REPO
+declare BRANCH
+BRANCH=$(echo $(git branch --show-current) | sed -e 's/\//-/g')
+## echo $BRANCH
+declare UTC_SECS
+UTC_SECS=$(date +%s)
+## echo $UTC_SECS
+
##RELAYS=$(curl 'https://api.nostr.watch/v1/online'; 2>/dev/null |
## sed -e 's/[{}]/''/g' |
## sed -e 's/\[/''/g' |
@@ -33,7 +43,7 @@ WOBBLE=${gnostr-wobble:-}
#echo -e $GIT_SHOW_Q
GIT_SHOW_HEAD=$(git show --show-signature HEAD)
export GIT_SHOW_HEAD
-echo -e $GIT_SHOW_HEAD
+##echo -e $GIT_SHOW_HEAD

#exit

@@ -101,7 +111,7 @@ elif command -v git >/dev/null; then
fi
fi

-note=$(gnostr --envelope $sec "$@" -t gnostr -t $(gnostr-weeble) -t $(gnostr-blockheight) -t $(gnostr-wobble) --content "#gnostr:$(git show HEAD)")
+note=$(gnostr --envelope $sec "$@" -t gnostr -t $(gnostr-weeble) -t $(gnostr-blockheight) -t $(gnostr-wobble) --content "#$REPO:$(git show HEAD)")

RELAYS=$(curl 'https://api.nostr.watch/v1/online'; 2>/dev/null |
sed -e 's/[{}]/''/g' |
Author Public Key
npub1ktvm2k6jaafe6g3ppzduwyy9eeafe2m5hssrgn26ev0a5ev62psqf8wkpm