Skip to content

Instantly share code, notes, and snippets.

View bl4ck4ndbr0wn's full-sized avatar
😄
Hello

Alpha Ng'ang'a bl4ck4ndbr0wn

😄
Hello
  • Vitafluence
  • Nairobi, Kenya
View GitHub Profile
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 November 25, 2019 12: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

@bl4ck4ndbr0wn
bl4ck4ndbr0wn / test_commands.py
Created March 12, 2019 12:53
Authors Heaven Sample Tests
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 June 12, 2018 09:26 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

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

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License