Skip to content

Instantly share code, notes, and snippets.

View renboy94's full-sized avatar

Rendell Lasola renboy94

  • Dumaguete City, Negros Oriental Philippines
View GitHub Profile
@renboy94
renboy94 / recursion.js
Created August 29, 2021 23:40 — forked from leighhalliday/recursion.js
Recursion in JS
// Recursion fundamentals: Counting down.
function countDown(num) {
console.log(num);
if (num > 1) {
countDown(num - 1);
}
}
countDown(5);
@renboy94
renboy94 / App.js
Last active February 12, 2021 17:05 — forked from skolhustick/App.js
ChakraUI - Login Form with ColorMode
import React from 'react';
import {
ThemeProvider,
theme,
ColorModeProvider,
CSSReset,
Box,
Flex,
IconButton,
useColorMode,
@renboy94
renboy94 / node_nginx_ssl.md
Created October 18, 2019 07:07 — 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