{"id":19554639,"url":"https://github.com/m4tx/discourse-login","last_synced_at":"2026-04-11T04:32:36.151Z","repository":{"id":69577980,"uuid":"140123851","full_name":"m4tx/discourse-login","owner":"m4tx","description":"Simple shell script that helps getting the \"Devotee\" Discourse badge","archived":false,"fork":false,"pushed_at":"2018-07-08T13:55:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T09:36:26.560Z","etag":null,"topics":["badge","curl","discourse","linux","shell-script"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m4tx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-07T23:34:35.000Z","updated_at":"2018-07-08T13:55:39.000Z","dependencies_parsed_at":"2023-03-08T02:45:43.354Z","dependency_job_id":null,"html_url":"https://github.com/m4tx/discourse-login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m4tx/discourse-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4tx%2Fdiscourse-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4tx%2Fdiscourse-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4tx%2Fdiscourse-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4tx%2Fdiscourse-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m4tx","download_url":"https://codeload.github.com/m4tx/discourse-login/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4tx%2Fdiscourse-login/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["badge","curl","discourse","linux","shell-script"],"created_at":"2024-11-11T04:28:25.835Z","updated_at":"2026-04-11T04:32:36.127Z","avatar_url":"https://github.com/m4tx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discourse-login\n\nSimple shell script that helps getting the \"Devotee\" Discourse badge (for\nvisiting a website for 365 consecutive days). Basically, it opens given\nDiscourse forum using curl, signs in the user and visits specified topic.\n\n## Usage\n\nFirst, make sure you have [curl](https://curl.haxx.se/) and\n[sed](https://www.gnu.org/software/sed/) installed. Then, in the repository\nclone directory, execute:\n\n```bash\ncp discourse-login.conf.example $HOME/.config/discourse-login.conf\n$EDITOR $HOME/.config/discourse-login.conf\n```\n\nUsing the editor, change the variables to the match the forum you want to visit\nevery day. Make sure `DISCOURSE_URL` does **not** contain trailing slash, and\n`DISCOURSE_TO_VISIT` is a relative URL to the topic you want to visit after\nsigning in (ideally, this should be a topic that requires authentication\nto make sure that the user was successfully signed in). Now, executing\n`./discourse-login.sh` should give an output similar to the following:\n\n```\n$ ./discourse-login.sh\nVisited the website successfully at Sat Jul  7 15:19:28 CEST 2018\n```\n\nIf so, it means that everything is set up properly! You can now copy the script\nto `/usr/bin` or `~/.local/bin` if you want. You should also change the\nconfiguration file permissions to 600/400 to make sure nobody but you (in\nthe OS) can read it.\n\n## cron\n\nIt makes the most sense to run the utility every day, or even twice a day.\nThe simplest way to do so is to set up a cron job. Execute `crontab -e` then,\nand paste the following at the end of the file that just showed up:\n\n```\n0 */12 * * * $HOME/.local/bin/discourse-login \u003e\u003e /var/log/discourse-login/discourse-login.log\n``` \n\nThis will instruct cron to run the script every 12 hours. You should of course\nsubstitute `$HOME/.local/bin/discourse-login` with your own installation path,\nand create `/var/log/discourse-login/` directory (with write access for your\nlocal user) or change this to your favorite logging directory (possibly\n`/dev/null`). Since you are only redirecting `STDOUT` to a file, cron will still\nemail you in case of any errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4tx%2Fdiscourse-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4tx%2Fdiscourse-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4tx%2Fdiscourse-login/lists"}