You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🤓
Hacking away
Jack-Benny Persson
jackbenny
🤓
Hacking away
Owner of CyberInfo Sverige and a true UNIX fanatic with a love for servers and server monitoring. Constant learner!
Parse'ing Sendgrid inbound messages via webhook in python and fastapi
Sendgrid inbound parse'ing in python and fastapi
This took me far too long to figure out how to parse emails coming in from sendgrid's "inbound parse" tool to receive an email via webhook, so I saved it for others to view if they stumble upon it.
The key to this is to check off the setting "POST the raw, full MIME message" in the inbound parse webhook address options.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redirect to trailing slashes on CloudFront with AWS Lambda. (all this because S3 uses 302 redirects instead of 301)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start docker registry with letsencrypt certificates and Basic Auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTE: You might not want to compress the image. It just means you have to uncompress it later to mount it. If you're planning to access the data soon, or frequently, don't compress it.
Saving a copy of the drive geometry
Save it in the same directory as the compressed image so later on if you decide you want to mount or extract data from the image you can see the partition structure without having to decompress the whole image. There might be some other ways to mount a compressed image.