Skip to content

Instantly share code, notes, and snippets.

@tphdev
tphdev / install-hub.sh
Last active May 14, 2018 17:21
Linux 'hub' installation instructions
#!/bin/bash
# (i) clone the repo
mkdir -p ~/tmpdir && cd ~/_tmpdir
git clone https://github.com/github/hub.git && cd hub
# (iii) build the hub script w/ go
script/build -o ~/bin/hub
@tphdev
tphdev / data-access-checklist.md
Last active November 15, 2017 16:32
Data Access Checklist
@tphdev
tphdev / install-go.sh
Created May 14, 2018 17:05
install-go.sh
#!/bin/bash
mkdir -p ~/__tempdldir/
cd ~/__tempdldir
# + (i) download + unzip Go-language @ https://golang.org/doc/install?download=go1.9.linux-amd64.tar.gz
curl https://dl.google.com/go/go1.10.2.linux-amd64.tar.gz > go1.10.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.10.2.linux-amd64.tar.gz
@tphdev
tphdev / heroku-knex-production-notes.md
Last active January 4, 2023 01:14
knex,node heroku production

Deploy Process

1 - Create an account on heroku

2 - Install heroku CLI, authenticate

npm install -g heroku
@tphdev
tphdev / intro-to-node--user-config.md
Last active June 14, 2018 17:57
Configuration for intro to node demo

Open Terminal

In Terminal

# 1) edit terminal
echo 'PS1="\[\033[40m\]\[\033[36m\]\w\\[\033[00m\] :: "' >> ~/.bashrc && source ~/.bashrc

# 2) create `public` folder

Slides

Code

setup
npm init
npm install --save express

package.json

@tphdev
tphdev / notes-intro-mysql.md
Created July 10, 2018 01:02
Intro to MySQL
@tphdev
tphdev / app-architecture.md
Last active July 16, 2018 22:33
application architecture

The big picture

@tphdev
tphdev / relational-mode.md
Last active July 10, 2018 01:53
relational model

Relational Model :

A framework for managing data. Data is organized into tables and relations.

Tables

============
TABLES (representation of data)
============
@tphdev
tphdev / critical-terms.md
Created July 10, 2018 01:52
relational model v sql v mysql

Relational Model A framework for describing data. Data is organized into tables and relations.

SQL stands for Structured Query Language. It’s a standard language for implementing a Relational Model accessing and manipulating Relational databases.

MySQL is a RDMS (Relational Database Management System) that implements SQL .

  • like SQL Server, Oracle, Postgres, etc.
CREATE DATABASE HOSPITAL