Skip to content

Instantly share code, notes, and snippets.

Slides

Code

setup
npm init
npm install --save express

package.json

@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
@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 / 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 / data-access-checklist.md
Last active November 15, 2017 16:32
Data Access Checklist
@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
1. Clear USB w/ Disk Utitlity, format w/ MSDOS(FAT)
2. Download unetbootin
http://unetbootin.github.io/
3. Configure target drive for usb
/Volumes/UNetbootin/unetbootin.app/Contents/MacOS/unetbootin installtype=USB targetdrive=/dev/disk2s1
4. Run unetbootin installer -- select ubuntu 16.04x64
@tphdev
tphdev / index.html
Created May 23, 2017 13:54
a bad example
<h1>Hey guys dont do this</h1>
@tphdev
tphdev / index.html
Created May 23, 2017 13:54
a bad example
<h1>Hey guys dont do this</h1>
@tphdev
tphdev / gen-project.sh
Created May 23, 2017 13:51
shell script project
mkdir project
cd project
touch index.html
mkdir js css
touch js/main.js css/styles.css
echo "some sweet text" > index.html