Skip to content

Instantly share code, notes, and snippets.

Avatar
😄
Hello

Alpha Ng'ang'a bl4ck4ndbr0wn

😄
Hello
View GitHub Profile
View vs-code-extensions.txt
patbenatar.advanced-new-file
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
fosshaas.fontsize-shortcuts
BriteSnow.vscode-toggle-quotes
Zignd.html-css-class-completion
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
octref.vetur
dbaeumer.vscode-eslint
@bl4ck4ndbr0wn
bl4ck4ndbr0wn / node_nginx_ssl.md
Created Nov 25, 2019 — 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

@bl4ck4ndbr0wn
bl4ck4ndbr0wn / test_commands.py
Created Mar 12, 2019
Authors Heaven Sample Tests
View test_commands.py
from unittest.mock import patch
from django.core.management import call_command
from django.db.utils import OperationalError
from django.test import TestCase
class CommandTests(TestCase):
def test_await_for_db_ready(self):
"""Test waiting for db when db is available"""
@bl4ck4ndbr0wn
bl4ck4ndbr0wn / Contract Killer 3.md
Created Jun 12, 2018 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

View LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License