diff --git a/README.md b/README.md new file mode 100644 index 0000000..4e5f1f1 --- /dev/null +++ b/README.md @@ -0,0 +1,66 @@ +## What is this? +This is @bcrypt's janky twitter replacement. + +## History + +[Original tweet](https://twitter.com/bcrypt/status/1588416861552582657): + +``` +RT @bcrypt: + +just made a “decentralized” “alternative” to twitter; everyone should go “join” it + +to make an account: fork https://github.com/diracdeltas/tweets +to tweet: git commit --allow-empty +to follow someone: git remote add +to retweet: git cherry-pick +``` + +## Setup + +* fork https://github.com/diracdeltas/tweets +* in your fork: +``` +git reset --hard d10b092 +git push -f origin main +``` + +## Stuff you can do + +* to post: +``` +git commit -m "your post" --allow-empty +git push +``` + +* to follow someone: +``` +git remote add +git fetch +``` + +* to follow everybody: +`./follow-everybody.bash` + + +* to repeat someone else's utterance: +``` +git cherry-pick +``` + +* [people to follow](https://github.com/diracdeltas/tweets/network/members) + +* to refresh your timeline and view it: +``` +git fetch --all && git rev-list --all --remotes --pretty | less +``` + +* to view your timeline in a cool way: +``` +git log --graph --all --decorate --oneline +``` + +* to get verified: + +1. [follow github's own verification instructions and make your commit email match your GPG key email](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification) +2. `git commit -S -m "your post" --allow-empty` from now on diff --git a/follow-everybody.bash b/follow-everybody.bash new file mode 100644 index 0000000..d654d67 --- /dev/null +++ b/follow-everybody.bash @@ -0,0 +1,9 @@ +# Copyright @datn 2022. Heavens forgive me for this +# be in your repo dir for this +for I in `curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/diracdeltas/tweets/forks | jq -r '.[].full_name'` +do + USEW=`echo $I | cut -d\/ -f1` + WEPO=`echo $I | cut -d\/ -f2` + git remote add $USEW https://github.com/$USEW/$WEPO + git fetch $USEW +done