A Pen by Peramanathan on CodePen.
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);
curl -H 'Authorization: token INSERTACCESSTOKENHERE' -H 'Accept: application/vnd.github.v3.raw' -O -L https://api.github.com/repos/owner/repo/contents/path |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
https://dailyui.co/ #008
Forked from Fabio Ottaviani's Pen Daily UI #008: 404 Page.
A Pen by Peramanathan Sathyamoorthy on CodePen.
-I add a Animations. -- Inspired By: https://dribbble.com/shots/2366695--1-San-Francisco
Forked from Dany Santos's Pen San Francisco Card.
A Pen by Peramanathan Sathyamoorthy on CodePen.