Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active November 17, 2024 17:23
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@CMCDragonkai
CMCDragonkai / tz-windows-to-iana.sh
Last active February 27, 2022 15:15
CLI: Convert Windows CLDR Timezone to IANA Timezone Identifiers
#!/usr/bin/env bash
if [[ "$@" == "" || "$@" == *-h* || "$@" == *--help* ]]; then
cat<<EOF
tz-windows-to-iana - Convert Windows timezone CLDR to IANA Identifiers.
You can acquire Windows timezone CLDR by using the CMD tool \`tzutil\`.
There are 2 protocols for identifying timezones.
There is the IANA timezone database: https://en.wikipedia.org/wiki/Tz_database
There is the Unicode Common Locale Data Repository: http://cldr.unicode.org/