Skip to content

Instantly share code, notes, and snippets.

View lorecrafting's full-sized avatar
📖
crafting lore!

lorecrafting lorecrafting

📖
crafting lore!
View GitHub Profile
@lorecrafting
lorecrafting / s3deploy.md
Last active February 2, 2019 17:33
S3 Deploy Notes

Prequisites: AWS Account

In AWS Console:

  1. Go to IAM Service and create new group, name it S3FullAccessGroup, attach the AmazonS3FullAccess policy to it.
  2. In IAM Service, add new user. Name it something like yourName_macbookpro_cli. Make sure only programmatic access is checked off. Add the user to the S3FullAccessGroup.
  3. When done with wizard, it will give you your secret access key only ONCE. Don't leave this page yet.

In Local Development Terminal:

  1. OSX: brew install awscli Linux: sudo apt update sudo apt install awscli
  2. aws configure
@lorecrafting
lorecrafting / Knex-Migrations-Seeding.md
Last active April 14, 2018 16:53 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

@lorecrafting
lorecrafting / keybase.md
Created June 2, 2018 22:06
keybase proof

Keybase proof

I hereby claim:

  • I am lorecrafting on github.
  • I am lorecrafting (https://keybase.io/lorecrafting) on keybase.
  • I have a public key ASDsl4Lu8_8yYfJE9II-7qIitrGaZ_0dBukN5rc-v85btgo

To claim this, I am signing this object:

@lorecrafting
lorecrafting / aws-deployment.md
Last active October 23, 2018 03:58 — forked from taesup/s3-deployment-devleague.md
aws-deployment-ec2

EC2 Deployment for DevLeague

{username} = your username
{ip} = your EC2 ip address
{repo} = your repo address
{email} = your email

AWS

@lorecrafting
lorecrafting / gist:d66f2e5a51b3e2d0c2a3596832c14322
Last active October 23, 2018 05:53
Containerizing http-socket-server
@lorecrafting
lorecrafting / README.md
Created September 6, 2018 01:27 — forked from nakaz/README.md
Lecture on password encryption, hashing, and bcrypt

How To Safely Store A Password

Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt.

Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, etc}?

These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. This means that they are fantastic for ensuring the integrity of data and utterly rubbish for storing passwords.

bcrypt Solves These Problems

How? Basically, it’s slow as hell. It uses a variant of the Blowfish encryption algorithm’s keying schedule, and introduces a work factor, which allows you to determine how expensive the hash function will be.

@lorecrafting
lorecrafting / Knex-Setup.md
Created September 11, 2018 20:11 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init

docker-compose.yml

version: '3'
services:
  db:
    image: postgres:10.0-alpine
    env_file: .env
    volumes:
      - pg-data-volume:/var/lib/postgresql/data
 ports:
@lorecrafting
lorecrafting / phx-1.4-upgrade.md
Created November 9, 2018 21:20 — forked from chrismccord/phx-1.4-upgrade.md
Phoenix 1.3.x to 1.4.0 Upgrade Guides

Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.

This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.

Install the new phx.new project generator

The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.

To grab the new archive, simply run:

Devinar Ideas:
CSS Layout:
- Holy Grail
- Sidebar
- 2 Sidebars
CSS Transitions
CSS Animations
Spinners & Loading Screens