Skip to content

Commit

Permalink
changed project structure
Browse files Browse the repository at this point in the history
# Modified
- Removed awesome logo from github readme
- Shifted configuration files to root directory
- Changed Tag line
- Added links to license badges
  • Loading branch information
maximousblk committed Apr 29, 2020
1 parent ff77ddf commit e81ac5a
Show file tree
Hide file tree
Showing 9 changed files with 645 additions and 645 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a href="https://piracy.now.sh"><img width="200" src="https://piracy.now.sh/logo.svg" alt="arrrr!"></a>
</p>

# [![Awesome](https://awesome.re/badge-flat2.svg)](https://awesome.re) Piracy
# Piracy

This list is an attempt to add structure to the resources you need to get started on your pirate voyage.

Expand All @@ -26,16 +26,16 @@ If you believe that your work is accessible on this list in a way that constitut
- [.vuepress/](docs/.vuepress/) - Vuepress configuration file and static assets.
- [404/](docs/404/) - 404 page for the website.
- [about/](docs/about/) - 404 page for the website.
- [dmca/](docs/dmca/) - DMCA disclaimer for the website.
- [laws/](docs/laws/) - List of laws and restrictions regardind digital piracy.
- [security/](docs/security/) - List of security related tools and assets.
- [now.json](docs/now.json) - Configuration file for Vercels Now.
- [package-lock.json](docs/package-lock.json) - Lock file for package manager.
- [package.json](docs/package.json) - Package manager configurations.
- [README.md](docs/README.md) - List of all digital piracy related tools and assets.
- [.gitignore](.gitignore) - gitignore file
- [contributing.md](contributing.md) - Contribution guidelines
- [.gitignore](.gitignore) - gitignore file.
- [check_links.py](check_links.py) - A python file to find broken links.
- [contributing.md](contributing.md) - Contribution guidelines.
- [LICENSE](LICENSE) - License file.
- [now.json](docs/now.json) - Configuration file for Vercels Now.
- [package-lock.json](docs/package-lock.json) - Lock file for package manager.
- [package.json](docs/package.json) - Package manager configurations.
- [README.md](README.md) - This file.
- [unsorted.md](unsorted.md) - Residual links from merging the warez and awesome-piracy. These either don't belong in this list or will eventually be merged.

Expand All @@ -57,15 +57,14 @@ Vuepress currently only supports header search and algolia pluggin.
I don't know how to integrate algolia in the current deployment cycle.
Any help regarding this will be much appreciated.
Untill then you will have to search via `Ctrl` + `F` or `Cmd` + `F`.
You can also use the GitHub's search and search in the repository.

## Contribute

Contributions welcome! Read the [contribution guidelines](contributing.md) first.

## License

![License](https://img.shields.io/github/license/maximousblk/piracy?style=for-the-badge)
[![License](https://img.shields.io/github/license/maximousblk/piracy?style=for-the-badge)](LICENSE)

To the extent possible under law, [Maximous Black](https://maximousblk.github.io/) has waived all copyright and related or neighboring rights to this project.


28 changes: 16 additions & 12 deletions docs/check_links.py → check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ class color:
RED = '\033[91m'
RESET = '\033[0m'


files = [
"README.md",
"security/README.md",
"laws/README.md"
"docs/README.md",
"docs/security/README.md",
"docs/laws/README.md"
]

websites = []
Expand All @@ -24,28 +25,29 @@ class color:
bad_links = []


headers = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36'}
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36'
}


def conclude():
print(str(success + error + critical) + " Links checked\n" + str(success) + " Good links\n" + str(error + critical) + " Bad links\n" + str(critical) + " Critical errors")
with open("result.txt","w+") as result:
print(str(success + error + critical) + " Links checked\n" + str(success) + " Good links\n" +
str(error + critical) + " Bad links\n" + str(critical) + " Critical errors")
with open("result.txt", "w+") as result:
for bad_link in bad_links:
result.writelines(bad_link + "\n")
exit(0)


def extract_urls(fname):
with open(fname) as f:
return re.findall("http[s]?:https://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))[^)']+", f.read())

return re.findall("http[s]?:https://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))[^)`]+", f.read())


for fi in files:
websites += extract_urls(fi)

print( color.YELLOW + str(len(websites)) + color.RESET + " links found")

print(color.YELLOW + str(len(websites)) + color.RESET + " links found")


for website in websites:
Expand All @@ -55,15 +57,17 @@ def extract_urls(fname):
# print( "[" + color.GREEN + str(response.status_code) + color.RESET + "] " + color.CYAN + website + color.RESET)
success += 1
else:
print( "[" + color.RED + str(response.status_code) + color.RESET + "]" + color.CYAN + " " + website + color.RESET)
print("[" + color.RED + str(response.status_code) +
color.RESET + "]" + color.CYAN + " " + website + color.RESET)
bad_links.append("[" + str(response.status_code) + "] " + website)
error += 1
except KeyboardInterrupt:
print("exiting...")
conclude()
exit(0)
except:
print( "[" + color.RED + "ERR" + color.RESET + "] " + color.CYAN + website + color.RESET)
print("[" + color.RED + "ERR" + color.RESET + "] " +
color.CYAN + website + color.RESET)
bad_links.append("[ERR] " + website)
critical += 1
pass
Expand Down
3 changes: 1 addition & 2 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Ensure your pull request adheres to the following guidelines:
- If you're adding a new header, ensure you give it a unique name.
- Do NOT add direct links to copyright protected material.
- Links to Dead of Malware containing websites are unacceptable.
- [Explicit content](https://help.github.com/en/github/site-policy/github-terms-of-service).
- List of links, specially Onion links, should be fomated as code. e.g. DuckDuckGo - [`http:https://3g2upl4pq6kufc4m.onion/`](http:https://3g2upl4pq6kufc4m.onion/)
- [Explicit content](https://help.github.com/en/github/site-policy/github-terms-of-service) is not accepted.

## Updating your PR

Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
title: "Piracy",
description: "A curated list of arrrrr!",
description: "It's illegal cuz they can't tax you!",
dest: "dist",
head: [["link", { rel: "icon", href: "/favicon.ico" }]],
themeConfig: {
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Home
metaTitle: Piracy
metaTitle: Piracy - It's illegal cuz they can't tax you!
---

## Cartoons and Anime
Expand Down
5 changes: 3 additions & 2 deletions docs/about/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
home: true
heroImage: /logo.svg
heroText: Piracy
tagline: A curated list of arrrrr!!!
tagline: It's illegal cuz they can't tax you!
actionText: Get Started →
actionLink: /
footer: PIRACY. IS. STEALING.
---

This list is an attempt to add structure to the resources you need to get started on your pirate voyage.
Expand All @@ -23,6 +24,6 @@ If you believe that your work is accessible on this list in a way that constitut

## License

![License](https://img.shields.io/github/license/maximousblk/piracy?style=for-the-badge)
[![LICENSE](https://img.shields.io/github/license/maximousblk/piracy?style=for-the-badge)](https://github.com/maximousblk/piracy/blob/master/LICENSE)

To the extent possible under law, [Maximous Black](https://maximousblk.github.io/) has waived all copyright and related or neighboring rights to this project.
File renamed without changes.
Loading

0 comments on commit e81ac5a

Please sign in to comment.