Skip to content

Instantly share code, notes, and snippets.

View jenlij's full-sized avatar
💎

Jennifer Li Johnson jenlij

💎
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jenlij on github.
  • I am jenlij (https://keybase.io/jenlij) on keybase.
  • I have a public key ASAmD3KYiQtWyXpJKxU3XaoMQfHCrh54wI5bbznl3AN1vgo

To claim this, I am signing this object:

@jenlij
jenlij / large-demo
Last active September 18, 2017 20:54
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://d1icmcy2lixord.cloudfront.net/new-story-banner.css"
rel="stylesheet" type="text/css">
</head>
<body>
<h1>Large Banner</h1>
<div id="new-story-overlay-for-october"
class="new-story-body">
@jenlij
jenlij / medium-demo
Last active September 18, 2017 20:53
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://d1icmcy2lixord.cloudfront.net/new-story-banner.css"
rel="stylesheet" type="text/css">
</head>
<body>
<h1>Medium Banner</h1>
<div id="new-story-overlay-for-october"
class="new-story-body">
@jenlij
jenlij / small-demo
Last active September 18, 2017 20:57
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://d1icmcy2lixord.cloudfront.net/new-story-banner.css"
rel="stylesheet" type="text/css">
</head>
<body>
<h1>Small Banner</h1>
<div id="new-story-overlay-for-october"
class="new-story-body">
$ sudo npm install pm2 -g
$ pm2 start bin/www (path to your node project's main file)
$ pm2 save
$ sudo pm2 startup
$ sudo service nginx restart
@jenlij
jenlij / nginx
Last active August 24, 2017 14:39
$ sudo apt-get install nginx
$ sudo ufw default deny incoming
$ sudo ufw default allow outgoing
$ sudo ufw allow ssh
$ sudo ufw allow 'Nginx HTTP'
$ sudo ufw enable
$ sudo ufw status (should say active)
$ systemctl status nginx
$ sudo vim /etc/nginx/sites-available/default
$ sudo nginx -t
$ sudo apt-get install postgresql postgresql-contrib
$ sudo -i -u postgres
$ psql
$ create role ubuntu;
$ alter role ubuntu with superuser;
$ alter role ubuntu with createdb;
$ alter role ubuntu with login;
$ \q
$ exit
$ sudo vim /etc/postgresql/9.5/main/pg_hba.conf
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt install nodejs-legacy
$ sudo apt-get install build-essential
$ sudo apt-get install npm
$ mkdir projects
$ cd projects
$ git clone git@github.com:my-github-repo
$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com”