Skip to content

Instantly share code, notes, and snippets.

View jocelynsaysrawr's full-sized avatar
🏠
Working from home

jocelynsaysrawr

🏠
Working from home
View GitHub Profile
@jocelynsaysrawr
jocelynsaysrawr / s3-deployment-devleague.md
Created September 10, 2018 23:00 — forked from taesup/s3-deployment-devleague.md
Depolying on S3 for devleague

S3 Deployment for DevLeague

{username} = your username
{ip} = your DO droplet ip address
{repo} = your repo address
{email} = your email

Pre-reqs

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js

Authentication with an Express API and Postgres

Setting Up

Let's make sure our Express app has the required base modules:

# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon
@jocelynsaysrawr
jocelynsaysrawr / Ruh-Roh.md
Created March 3, 2018 19:24 — forked from jaywon/Ruh-Roh.md
Email Hell

###Email Hell

We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.

Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.

Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!

###The Fix