sierra-tang0 / jakoby.dicks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy with Cyclic.sh

  1. Fork this repo
  2. Sign up with Cyclic.sh
  3. Navigate to https://app.cyclic.sh/
  4. Deploy a new app.
  5. Click the "Link Your Own" tab.
  6. Select & grant access to your fork
  7. Click the 🔧 wrench icon for your fork deployment
  8. Click the Variables tab
  9. Add a new variable named WEBSITE and enter your website as the value. (eg: https://host/)
  10. Add a new variable named PASSWORD and enter some secret password you will use to list/delete redirects. (eg: this is a password)
  11. Add a new variable named DEPLOYMENT and enter the url where you intent to deploy the application WITH NO TRAILING SLASH. (eg: https://host)

Scripts

Delete 301 Webhooks

Less experienced users are keen to paste a whole shitload of webhooks with a 301 status, not realizing that most webhooks only support POST operations, while 301 redirects do not.

To help educate, and also get rid of all this extra crap, the ./scripts/delete_301_webhooks.js script will delete redirects that look like webhooks, but don't use a 307 status code.

For webhooks that look like discord webhooks (99% of them), it also sends a friendly message.

Running

export DEPLOYMENT=https://link.iamjakoby.com;
export PASSWORD=password;
./scripts/delete_301_webhooks.js;

About


Languages

Language:EJS 52.7%Language:JavaScript 46.3%Language:Shell 1.0%