Skip to content

Instantly share code, notes, and snippets.

View AhmedAbouelkher's full-sized avatar
🎯
Focusing

Ahmed Mahmoud AhmedAbouelkher

🎯
Focusing
View GitHub Profile
@AhmedAbouelkher
AhmedAbouelkher / 2019-https-localhost.md
Created December 14, 2023 12:56 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

var mediaJSON = {
"categories": [{
"name": "Movies",
"videos": [{
"description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources": ["http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"],
"subtitle": "By Blender Foundation",
"thumb": "images/BigBuckBunny.jpg",
"title": "Big Buck Bunny"
},
@AhmedAbouelkher
AhmedAbouelkher / http_version.sh
Created August 9, 2022 08:13 — forked from ihordiachenko/http_version.sh
Check HTTP version of an endpoint
curl -sI https://curl.haxx.se -o/dev/null -w '%{http_version}\n'