Skip to content

Instantly share code, notes, and snippets.

View grumpysi's full-sized avatar

Simon Nicklin grumpysi

  • The Greenhouse People
  • Stoke-on-Trent, UK
  • X @SimonNjO
View GitHub Profile
@grumpysi
grumpysi / gist:c7636c8cffc466c3ce919e67b6eee09d
Created June 3, 2021 14:15
Install pisignage docker image on AWS EC2 instance using user data script
Amazon Linux 2 AMI (HVM) x86
Instance Type: t2.micro
Key pair create
VPC
Security:
SSH 22 from current IP
Custom TCP 3000 from current IP
Add the following to user data box:
@grumpysi
grumpysi / gist:8754c3107a039e3d1f387f20b6c6210a
Created March 16, 2022 11:20
Create a self signed local certificate for localhost development.
openssl req -x509 -out localhost.crt -keyout localhost.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")