Skip to content

Instantly share code, notes, and snippets.

@heldev
heldev / TagAwesomeListWithReposAndLicenses.hs
Last active Jul 19, 2019
Adds repositories and corresponding licenses to every line with a link of an awesome list, if it's not a GitHub link the script tries to find GitHub links in the page content
View TagAwesomeListWithReposAndLicenses.hs
#!/usr/bin/env stack
-- stack script --resolver lts-13.27
-- How to use:
-- 1. Install stack `curl -sSL https://get.haskellstack.org/ | sh`
-- (alternative ways available here https://docs.haskellstack.org/en/stable/README/#how-to-install )
-- 2. Fill parameters like `gitHubClientId`, `gitHubClientSecret`, `readMeUrl` ...
-- (GitHub credentials can be created here https://github.com/settings/applications/new )
-- 3. Run the file `./this-file.hs`
-- 4. Review newly created README.md in your working directory