Skip to content

Instantly share code, notes, and snippets.

@Luvgreed
Last active August 28, 2018 06:48
Show Gist options
  • Save Luvgreed/bd5ddb5e0e36653fb74b4a76c5a4e550 to your computer and use it in GitHub Desktop.
Save Luvgreed/bd5ddb5e0e36653fb74b4a76c5a4e550 to your computer and use it in GitHub Desktop.
Nodesource
https://nodejs.org/en/
https://github.com/creationix/nvm
https://github.com/nodesource/distributions
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
# the rules currently running on the NAT (Network Address Translation) table:
$ sudo iptables -t nat -L
# add a rule forwarding packets sent to external port 80 to internal port 8000
$ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
# async await
https://blog.grossman.io/how-to-write-async-await-without-try-catch-blocks-in-javascript/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment