Skip to content

Instantly share code, notes, and snippets.

step1 : launch the ec2 machine or similar from other cloud service provider
step2 : download the private key
step3: ssh -i PRIVATE_KEY.pem ec2-user@<IP address>
step4: above code will give warning regarding saying permissiion are bad for private key
step 5: then run this command --> chmod 0400 PRIVATE_KEY.pem

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. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

@AbhishekPal401
AbhishekPal401 / GLSL-Noise.md
Created August 15, 2022 17:00 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}