Skip to content

Instantly share code, notes, and snippets.

Avatar
🎴

Robinzon Robinzon100

🎴
View GitHub Profile
@Robinzon100
Robinzon100 / node_nginx_ssl.md
Last active Apr 12, 2021 — 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

View windows terminal config.json
// This file was initially generated by Windows Terminal 1.1.2233.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"initialCols": 165,
"initialRows": 41,
View alacritty_config_with_wsl.yml
# enable_experimental_conpty_backend: true
# add some transparency
background_opacity: 0.99
dimensions:
columns: 80
lines: 30
View basic nginx
server {
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
View .zshrc
#fortune | cowsay -f stegosaurus; echo "$(date '+%D %T' | toilet -f term -F border --gay)"
#fortune | cowsay -f tux; echo "$(date '+%D %T' | toilet -f term --metal)"
# fortune; echo "$(date '+%D %T' | toilet -f term -F border --gay)"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Load version control information
# Path to your oh-my-zsh installation.
export ZSH="/home/robinzon/.oh-my-zsh"
@Robinzon100
Robinzon100 / keybindings.json
Last active May 28, 2020
VS Code keybindings
View keybindings.json
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+k ctrl+l",
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "ctrl+shift+unknown",
"command": "workbench.files.action.focusOpenEditorsView",
"when": "workbench.explorer.openEditorsView.active"
@Robinzon100
Robinzon100 / gtk.css
Last active May 9, 2020
my gtk.css(~/.config/gtk-3.0/gtk.css) file for ubuntu GNOME
View gtk.css
/* .header-bar.default-decoration {
padding-top: 1px;
padding-bottom: 1px;
font-size: 0.3em !important;
}
.header-bar.default-decoration .button.titlebutton {
padding: 0px;
}
window.ssd headerbar.titlebar {
@Robinzon100
Robinzon100 / app.js
Created Mar 7, 2019 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
View app.js
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
View sync
GitHub Token: 9307abc429267715b2cf0823d53766dd1257ff29
GitHub Gist: fcf6b464a61ce19fc648a604084c36ba