mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-27 09:58:30 +01:00
move 'How to find broken links?'
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
24f28ff86a
commit
fd75e94757
2 changed files with 23 additions and 23 deletions
|
@ -21,3 +21,26 @@ When creating a pull request, please heed the following:
|
||||||
- Code review may ensue in order to help shape your proposal
|
- Code review may ensue in order to help shape your proposal
|
||||||
- Explain the problem and your proposed solution
|
- Explain the problem and your proposed solution
|
||||||
- One-line description - please don't continue the description on new lines
|
- One-line description - please don't continue the description on new lines
|
||||||
|
|
||||||
|
## How to find broken links?
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/trimstray/the-book-of-secret-knowledge && cd the-book-of-secret-knowledge
|
||||||
|
|
||||||
|
for i in $(sed -n 's/.*href="\([^"]*\).*/\1/p' README.md | grep -v "^#") ; do
|
||||||
|
|
||||||
|
_rcode=$(curl -s -o /dev/null -w "%{http_code}" "$i")
|
||||||
|
|
||||||
|
if [[ "$_rcode" != "2"* ]] ; then echo " -> $i - $_rcode" ; fi
|
||||||
|
|
||||||
|
done
|
||||||
|
```
|
||||||
|
|
||||||
|
Result:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
-> https://ghostproject.fr/ - 503
|
||||||
|
-> http://www.mmnt.net/ - 302
|
||||||
|
-> https://search.weleakinfo.com/ - 503
|
||||||
|
[...]
|
||||||
|
```
|
||||||
|
|
23
README.md
23
README.md
|
@ -56,29 +56,6 @@ Url marked **\*** is temporary unavailable. Please don't delete it without confi
|
||||||
|
|
||||||
Before adding a pull request, please see the **[contributing guidelines](CONTRIBUTING.md)**. All **suggestions/PR** are welcome!
|
Before adding a pull request, please see the **[contributing guidelines](CONTRIBUTING.md)**. All **suggestions/PR** are welcome!
|
||||||
|
|
||||||
### How to find broken links?
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/trimstray/the-book-of-secret-knowledge && cd the-book-of-secret-knowledge
|
|
||||||
|
|
||||||
for i in $(sed -n 's/.*href="\([^"]*\).*/\1/p' README.md | grep -v "^#") ; do
|
|
||||||
|
|
||||||
_rcode=$(curl -s -o /dev/null -w "%{http_code}" "$i")
|
|
||||||
|
|
||||||
if [[ "$_rcode" != "2"* ]] ; then echo " -> $i - $_rcode" ; fi
|
|
||||||
|
|
||||||
done
|
|
||||||
```
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
-> https://ghostproject.fr/ - 503
|
|
||||||
-> http://www.mmnt.net/ - 302
|
|
||||||
-> https://search.weleakinfo.com/ - 503
|
|
||||||
[...]
|
|
||||||
```
|
|
||||||
|
|
||||||
## :gift_heart: Support
|
## :gift_heart: Support
|
||||||
|
|
||||||
If this project is useful and important for you or if you really like _the-book-of-secret-knowledge_, you can bring **positive energy** by giving some **good words** or **supporting this project**. Thank you!
|
If this project is useful and important for you or if you really like _the-book-of-secret-knowledge_, you can bring **positive energy** by giving some **good words** or **supporting this project**. Thank you!
|
||||||
|
|
Loading…
Reference in a new issue