Skip to content

Instantly share code, notes, and snippets.

View edvaldo-domingos's full-sized avatar
🏠
Working from home

braulio edvaldo-domingos

🏠
Working from home
View GitHub Profile
@edvaldo-domingos
edvaldo-domingos / start_mongo.sh
Created March 4, 2021 17:45
Starts mongo db on Mac by specifying path
sudo mongod --dbpath ~/data/db
@edvaldo-domingos
edvaldo-domingos / clean-up-boot-partition-ubuntu.md
Created August 26, 2020 13:00 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@edvaldo-domingos
edvaldo-domingos / myscript.sh
Created July 27, 2020 17:38 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@edvaldo-domingos
edvaldo-domingos / node_nginx_ssl.md
Created July 20, 2020 20:21 — 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

@edvaldo-domingos
edvaldo-domingos / ssh.md
Created July 19, 2020 18:45 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test