Skip to content

Instantly share code, notes, and snippets.

View Success-Guy's full-sized avatar
Working from home

Abiodun Aworeni Success-Guy

Working from home
View GitHub Profile
Success-Guy /
Created April 29, 2022 22:42 — forked from bradtraversy/
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)

2. Create a droplet and log in via ssh

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

maxrodrigo /
Last active January 9, 2024 12:29
Puppeteer/Chrome Headless on EC2 Amazon Linux AMI
#!/bin/env bash
# Install 3rd party repositories
sudo rpm -ivh --nodeps
sudo rpm -ivh --nodeps
sudo rpm -ivh --nodeps
# Install dependencies
sudo yum install -y nodejs gcc-c++ make cups-libs dbus-glib libXrandr libXcursor libXinerama cairo cairo-gobject pango libXScrnSaver gtk3
mofesolapaul / nigeria-states.json
Last active February 13, 2024 06:15
List of all Nigerian states, alphabetically arranged in JSON array
View nigeria-states.json
"Akwa Ibom",
"Cross River",
CMCDragonkai /
Last active February 22, 2024 05:29
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on