Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of Archive.org, Wikiless, Nitter, and Invidious cross-references #212

Merged

Conversation

ghost
Copy link

@ghost ghost commented Aug 24, 2022

Probably the last super large PR, unavoidable I'm afraid.

Getting rid of Archive.org , Wikiless , Nitter , Invidious (and a few others) cross-references. See #129.

This should get rid of the remains of word processors (except some tables) and also help in exporting to other formats.

Command used:

gawk -v RS='</sup>|\n' -F ': ' '{sub(/\r$/, "")} FNR==NR {if (NF==2 && $1 ~ /^[[:blank:]]*\[[0-9]+]$/) map[gensub(/^[[:blank:]]+/, "", "1", $1)]=$2; next} match($0, /\[\[[^]]+]](\[[0-9]+])/, a) && a[1] in map {$0 = substr($0, 1, RSTART+RLENGTH-length(a[1])-1) "(" map[a[1]] ")" substr($0, RSTART+RLENGTH)} ORS=RT' file file > result

  • Checked through editor (nano).
  • Checked through local rendering using Jekyll.
  • Double-checked.
  • Checked by Pterocles with some fixes
  • Added some final touch with some .onion links fixes

Ready for final review

Doing it section by section is not convenient/useful since you'd have to isolate the section AND the references that might be used by other links. Making the whole thing complicated.

Now this is just "checking one by one" instead of "doing it manually"

…rences

Getting rid of Archive.org , Wikiless , Nitter , Invidious cross-references
@ghost ghost added enhancement labels Aug 24, 2022
@ghost ghost self-assigned this Aug 24, 2022
@ghost ghost removed the New Information label Aug 24, 2022
@nopeitsnothing
Copy link
Collaborator

Does what it's supposed to. LGTM. I'm checking links before approving.

* Organizational fixes will work for now until later when we can cleanup.
* Missed a few superscript links

I think it looks beautiful!
Signed-off-by: pterocles <th.thgtoa@disroot.org>
nopeitsnothing
nopeitsnothing previously approved these changes Aug 24, 2022
Copy link
Collaborator

@nopeitsnothing nopeitsnothing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only had to do a few things to tidy up. We'll have to go through and do another PR on just organizing and final cleanup but I have no complaints. Thanks @TwoSixtyThreeFiftyFour!

@ghost ghost marked this pull request as ready for review August 25, 2022 01:53
@ghost
Copy link
Author

ghost commented Aug 25, 2022

Please @dan-kir and @NobodySpecial256 , have a review at this as it modifies the entire document and simplifies it. And makes the document 1300 lines shorter. I'm certain we will have significant less issues with exporting to PDF after getting rid of all non numbered end-notes of type, leaving only the actual references [^number]. Now the credit doesn't go to me. I made some initial regexes and a basic sed commands without success. Someone from StackOverFlow changed it to awk and then to gawk which had to be updated to the latest version (Ubuntu 22.04 install, easy with Windows WSL). And then it took like 3 hours to finally reach the "right command", even for that cool person. But in the end. It's done. This would have taken weeks by hand.

@ghost ghost changed the title (Draft Large PR) Getting rid of Archive.org , Wikiless , Nitter , Invidious cross-references (Large PR, Ready for final review) Getting rid of Archive.org , Wikiless , Nitter , Invidious cross-references Aug 25, 2022
Fixed some .onion links that were HTTPS when only working on HTTP
nopeitsnothing
nopeitsnothing previously approved these changes Aug 25, 2022
Re-adding missing B6 and car warning.
Update fixes to be in sync with current guide.md
@nopeitsnothing
Copy link
Collaborator

Appendix B6 isn't in master yet.

@ghost
Copy link
Author

ghost commented Aug 25, 2022

I know, working on it

@nopeitsnothing
Copy link
Collaborator

Cool. Actually, it is, just not the ToC.

Sync fixes again
Normally the last one
@ghost
Copy link
Author

ghost commented Aug 25, 2022

All should be okay now

@ghost ghost requested a review from nopeitsnothing August 25, 2022 12:58
nopeitsnothing
nopeitsnothing previously approved these changes Aug 25, 2022
Signed-off-by: pterocles <th.thgtoa@disroot.org>
guide.md Outdated
@@ -820,7 +820,7 @@ The IMEI and IMSI can be traced back to you in at least six ways:

Here is also a good YouTube video on this topic: DEFCON Safe Mode - Cooper Quintin - Detecting Fake 4G Base Stations in Real-Time <https://www.youtube.com/watch?v=siCk4pGGcqA> <sup>[[Invidious]](https://yewtu.be/watch?v=siCk4pGGcqA)</sup>

**For these reasons, it is crucial to get dedicated an anonymous phone number and/or an anonymous burner phone with an anonymous pre-paid sim card that is not tied to you in any way (past or present) for conducting sensitive activities (See more practical guidance in [Getting an anonymous Phone number][Getting an anonymous Phone number:] section).**
**For these reasons, it is crucial to get dedicated an anonymous phone number and/or an anonymous burner phone with an anonymous pre-paid sim card that is not tied to you in any way (past or present) for conducting sensitive activities. It is also possible get an anonymous pre-paid but preferably dedicated number from specific free and paid online services accepting anonymous cryptocurrencies like Monero (Get more practical guidance here: [Getting an anonymous Phone number][Getting an anonymous Phone number:]).**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please spell check before you push commits.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. But this was not a spell checking PR. Wanted to limit the scope of it. Sorry if I missed this as part of the sync.

Copy link
Collaborator

@nopeitsnothing nopeitsnothing Aug 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. But this was not a spell checking PR. Wanted to limit the scope of it. Sorry if I missed this as part of the sync.

Only if the spelling errors are introduced by your changes, which they are were in this case. It's not often, but do try and fix those before they get to master. Anyway, this was a huge task and thanks for taking time to get the script right the first time. Very well done.

@NobodySpecial256 NobodySpecial256 merged commit e2bce6e into master Aug 27, 2022
@nopeitsnothing nopeitsnothing deleted the Major-change-to-get-rid-of-useless-cross-references branch August 27, 2022 12:29
@nopeitsnothing nopeitsnothing changed the title (Large PR, Ready for final review) Getting rid of Archive.org , Wikiless , Nitter , Invidious cross-references Get rid of Archive.org, Wikiless, Nitter, and Invidious cross-references Oct 14, 2022
nopeitsnothing added a commit that referenced this pull request Oct 14, 2022
The commit https://github.com/Anon-Planet/thgtoa/pull/212/files#diff-dc0dbe13416a77d17f112b7668fb77ba60dc51e684d2cc20e8850df204e53846L4801
seems to have broken a small link in #212 ("Get rid of Archive.org, Wikiless, Nitter,
and Invidious cross-references")

Signed-off-by: Sharp-tailed Grouse <sharptail@riseup.net>
NobodySpecial256 added a commit that referenced this pull request Oct 17, 2022
nopeitsnothing added a commit that referenced this pull request Oct 24, 2022
The commit https://github.com/Anon-Planet/thgtoa/pull/212/files#diff-dc0dbe13416a77d17f112b7668fb77ba60dc51e684d2cc20e8850df204e53846L4801
seems to have broken a small link in #212 ("Get rid of Archive.org, Wikiless, Nitter,
and Invidious cross-references")

Signed-off-by: Sharp-tailed Grouse <sharptail@riseup.net>
nopeitsnothing added a commit that referenced this pull request Oct 24, 2022
The commit https://github.com/Anon-Planet/thgtoa/pull/212/files#diff-dc0dbe13416a77d17f112b7668fb77ba60dc51e684d2cc20e8850df204e53846L4801
seems to have broken a small link in #212 ("Get rid of Archive.org, Wikiless, Nitter,
and Invidious cross-references")

Signed-off-by: Sharp-tailed Grouse <sharptail@riseup.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants