lightninglabs / docs.lightning.engineering

Building lapps, running lnd, and more
49 stars 66 forks source link

URLs in repo with HTTP 404 error response #365

Open dstadulis opened 1 year ago

dstadulis commented 1 year ago

Script to find URLs in repo with 404 error response

$ grep --color -rhsI . -oE -e "(http|https)://[a-zA-Z0-9./?@=_-]*" | sort | uniq | parallel 'echo -n "{} "; curl --write-out '%{http_code}' --silent --output /dev/null {}; echo' > ~/responsecodes

$ grep " 404" ~/responsecodes | awk '{print $1}' | tr -d \' | parallel 'grep -rn {}; echo'

Output

./lightning-network-tools/lnd/recovery-planning-for-failure.md:51:[Learn how to recover your funds.](https://docs.lightning.engineering/lightning-network-tools/lnd/recovery)

./docs/lnd/grpc/javascript.md:239:Javascript](https://developers.google.com/protocol-buffers/docs/reference/javascript-generated).

./community-resources/resource-list.md:110:* [LNBits](https://lnbits.org)

./the-lightning-network/lsat/aperture.md:38:[See how the client interceptor is coded in Aperture](https://github.com/lightninglabs/aperture/blob/master/lsat/client\_interceptor.go)

./lightning-network-tools/lnd/macaroons.md:44:The macaroon files are the only files with highly sensitive information that are not encrypted \(unlike the wallet file and the macaroon database file that contains the [root key](https://github.com/lightninglabs/docs.lightning.engineering/tree/33bc7e27861f932d5d0676912bf45cf608534ceb/docs/macaroons/README.md), these are always encrypted, even if no password is used\).
./lightning-network-tools/lnd/macaroons.md:127:The macaroon bakery is described in more detail in the [README in the macaroons package](https://github.com/lightninglabs/docs.lightning.engineering/tree/33bc7e27861f932d5d0676912bf45cf608534ceb/docs/macaroons/README.md).

./lightning-network-tools/lightning-terminal/lnc-npm.md:104:* Check out the relevant code in the project’s [readme](https://github.com/lightninglabs/lnc-web/blob/update-connect-demo/demos/connect-demo/README.md)

./the-lightning-network/taro.md:42:[Bitcoin UTXO](https://mirror.xyz/0xaFaBa30769374EA0F971300dE79c62Bf94B464d5/Yetu-6pZkbQCOpsBxswn\_7dGUZDxoBU8NrOQIZScwpg)

./build-a-lapp/local-cluster-setup-with-polar/README.md:5:This tutorial will leverage the Polar application for setting up a local cluster of Lightning Network nodes on regtest. Polar [can be downloaded](https://github.com/lightninglabs/docs.lightning.engineering/tree/9423e81a91e5a382442d5fa2fdacde019133dbcb/build-a-lapp/lightningpolar.com) for MacOS, Linux, and Windows. The source code is hosted [on Github](https://github.com/jamaljsr/polar/releases/).

./lightning-network-tools/lnd/safety.md:53:* For more technical information [see the aezeed README](https://github.com/lightninglabs/docs.lightning.engineering/tree/f123436bd902a6be74cb853447456c5c65307dd6/docs/aezeed/README.md).

./lightning-network-tools/lnd/safety.md:67:See the [high-level macaroons documentation](https://github.com/lightninglabs/docs.lightning.engineering/tree/f123436bd902a6be74cb853447456c5c65307dd6/docs/lnd/macaroons.md) or the [technical README](https://github.com/lightninglabs/docs.lightning.engineering/tree/f123436bd902a6be74cb853447456c5c65307dd6/docs/macaroons/README.md) for more information.

./lightning-network-tools/lightning-terminal/lightning-node-connect.md:53:[Read also: the gRPC service definition of Terminal Web Proxy.](https://github.com/lightninglabs/subasta/blob/master/auctioneerrpc/hashmail.proto)

./lightning-network-tools/lnd/macaroons.md:123:Have a look at the [Java GRPC example](https://github.com/lightninglabs/docs.lightning.engineering/tree/33bc7e27861f932d5d0676912bf45cf608534ceb/docs/grpc/java.md) for programmatic usage details.

Note: some URL point to internal LL resources which will return 404 for outside viewers but not for repo maintainers logged in.

kaloudis commented 1 year ago

https://lnbits[.]org is now https://lnbits.com

Liongrass commented 1 year ago

Thank you @dstadulis and @kaloudis ! I've gone through all these links and updated them. In some instances the links are for articles that are not currently displayed in the gitbook, I don't know why they remain in the repo but they could be removed. In other cases a manual inspection didn't reveal any errors.

I've also removed the internal link.