idriss

joined 2 weeks ago
[–] idriss@lemm.ee 2 points 1 week ago

The last example will be equivalent to the following curl:

curl -L \
  -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer github_pat_xxxx" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/idrissbellil/cryptomonitor/issues \
  -d '{"title":"Found a bug","body":"I'\''m having a problem with this.","assignees":["idrissbellil"]}'
[–] idriss@lemm.ee 2 points 1 week ago (3 children)

Thanks for having a look!

Monitor my email and when I get one that matches the regex it’ll make an API call?

It's this first one with a slight twist. It generates a random email for you rather than asking you to give your username & password (I don't want to handle securing people's usernames and emails at this stage). It makes an API call when the From Email matches the regex.

Example from demo:

URL: https://api.github.com/repos/idrissbellil/cryptomonitor/issues
Method: POST   (The HTTP Method: POST, GET, PUT, ..)
From Regex: .*  (only trigger the call given certain `From` emails so you it doesn't create a thousand tickets if somebody floods you with emails)
Payload: {"title":"{{ .Subject }}","body":"{{ .Body }}","assignees":["idrissbellil"]}  (the data part of the POST/PUT/even GET query - here you can re-use parts of the email you received like Subject, Body, To, From
Headers: {"Accept":"application/vnd.github+json","Authorization":"Bearer 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","X-GitHub-Api-Version":"2022-11-28"}
[–] idriss@lemm.ee 40 points 2 weeks ago (3 children)

Hollywood conditioned americans to believe they are heros and world savers. They cant grow up out of that for some reason. They also deeply believe that their lives is worth more than others.

In a poll I saw recently, most countries of the world voted the US as the biggest threat to world peace.

They are killing Yemeni civilians as we speak now.

US veteran is going to be treated the same as Nazis as soon as the US will implode and stop controlling the media (the orange clown is already making this process faster).

view more: ‹ prev next ›