Skip to content

Instantly share code, notes, and snippets.

@tysian
tysian / node_nginx_ssl.md
Created November 27, 2020 15:44 — forked from bradtraversy/node_nginx_ssl.md
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

@tysian
tysian / .mac-setup.md
Last active September 4, 2022 16:03
Mac Setup
@tysian
tysian / sphp.sh
Created January 29, 2022 14:41 — forked from rhukster/sphp.sh
Easy Brew PHP version switching
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
osx_patch_version=${osx_patch_version:-0}
osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx_patch_version}))
homebrew_path=$(brew --prefix)
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
{
"schemes": [
{
"background": "#1e293b",
"black": "#0f172a",
"blue": "#3b82f6",
"brightBlack": "#94a3b8",
"brightBlue": "#38bdf8",
"brightCyan": "#5eead4",
"brightGreen": "#9DFF91",