Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Obermeier Pobermeier

View GitHub Profile
View mongodb_cheat_sheet.md

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

View eslint_prettier_airbnb.md

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@Pobermeier
Pobermeier / myscript.sh
Created Feb 25, 2020 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
View myscript.sh
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@Pobermeier
Pobermeier / ssh.md
Created Feb 25, 2020 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets
View ssh.md

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

@Pobermeier
Pobermeier / webdev_online_resources.md
Created Feb 25, 2020 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@Pobermeier
Pobermeier / npmcrashcourse.txt
Created Feb 25, 2020 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands
View npmcrashcourse.txt
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@Pobermeier
Pobermeier / node_nginx_ssl.md
Created Feb 25, 2020 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL
View node_nginx_ssl.md

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

@Pobermeier
Pobermeier / docker-help.md
Created Feb 25, 2020 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@Pobermeier
Pobermeier / docker_wordpress.md
Created Jan 8, 2020 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin
View docker_wordpress.md

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@Pobermeier
Pobermeier / cloudSettings
Last active Aug 18, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-08-18T10:46:33.874Z","extensionVersion":"v3.4.3"}
You can’t perform that action at this time.