Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Eric Bishard httpJunkie

🏠
Working from home
View GitHub Profile
View seg.txt
ericbishard@RMML0522 travel-api % DEBUG=* ts-node src/index.ts
express:router:route new '/' +0ms
express:router:layer new '/' +2ms
express:router:route get '/' +1ms
express:router:layer new '/' +0ms
express:router:route new '/:id' +0ms
express:router:layer new '/:id' +0ms
express:router:route get '/:id' +0ms
express:router:layer new '/' +0ms
express:router:route new '/' +0ms
@httpJunkie
httpJunkie / install-nvm-mac-m1.md
Last active Nov 22, 2021
Install Node/NVM on Mac M1
View install-nvm-mac-m1.md

As a web developer these days, we typically need to be able to switch versions of Node on the fly, for this we want to install Node Version Manager on a clean install of our machine, we don't want to start by installin Node on it's own as this will give us a single version of Node (whichever we decide to install)

If you install Node first and then try to install NVM, things can get complicated, so if you have already installed Node, my suggestion is to completely remove it before installing NVM.

As well, NVM is explicitly not supported when installed via homebrew - the only correct way to install it is with the install script in NVM's Readme.

So if you have a brand new Mac M1 these are the steps you need to go through.

  1. Navigate to your home directory
@httpJunkie
httpJunkie / gist:25179edfb81301add1aeb5b977f65176
Last active Mar 31, 2021
Docker Instance for Couchbase latest
View gist:25179edfb81301add1aeb5b977f65176
docker pull couchbase
docker run -d --name cblatest -p 8091-8096:8091-8096 -p 11210-11211:11210-11211 couchbase
@httpJunkie
httpJunkie / new-gatsby-novela-site
Last active Apr 12, 2020
Create Gatsby Novela site from scratch
View new-gatsby-novela-site
# Setting Up a New Gatsby Novela Themed Site
This is a step-by-step unstructional on how to set up The Novela Gatsby theme by Narative for your own blog or website.
## Prerequisites
- GitHub Account/Repo
- Git installed
- Node installed
- An editing environment (VS Code)
@httpJunkie
httpJunkie / readme.md
Last active Apr 4, 2020
Run Mongo with Docker
View readme.md

Run Mongo using Docker

This guide will get you up and running with Mongo

Download latest Image

docker pull mongo:X.X.X

Installing and Running Mongo in Detached Mode (In Background and able to connect from server)

@httpJunkie
httpJunkie / Readme.md
Last active Apr 4, 2020
Run Couchbase with Docker at Prior Version
View Readme.md

Run Couchbase using Docker at Specific Version Number

We may need to sometimes run an older version of Couchbase to repro a bug or issue, sometimes we need a certain version of the SDK and Couchbase.

There are many versions of Couchbase that we may want to junmp to for some reason, here are the version numbers that you can add after the colon in the command below.

  • 4.0.0
  • 4.1.0
  • 4.5.0
  • 4.6.0
@httpJunkie
httpJunkie / file-new-project-js.md
Last active Mar 9, 2020
File New Project JavaScript
View file-new-project-js.md

mkdir xxx && cd $_ && npm init -y && touch .gitignore && echo "/node_modules/*" >> .gitignore && touch readme.md && echo "# Getting Started" >> readme.md && touch .env && echo -e "user=administrator\npass=password" >> .env && npm i dotenv && git add . && code .

@httpJunkie
httpJunkie / couchbase-javascript-developer-resource.md
Last active Aug 26, 2020
Couchbase JavaScript Developer Resource
View couchbase-javascript-developer-resource.md
@httpJunkie
httpJunkie / get-started-docker-mongo-express-mongoose.md
Created Feb 6, 2020
Get started with Docker, Mongo, Express, and Mongoose
View get-started-docker-mongo-express-mongoose.md
  1. pull the official image:
docker pull mongo

optionally pull by version:

docker pull mongo:4.2.3
@httpJunkie
httpJunkie / get-started-docker-mongo.md
Last active Feb 6, 2020
Get started with Docker and Mongo
View get-started-docker-mongo.md
  1. pull the official image:
docker pull mongo

optionally pull by version:

docker pull mongo:4.2.3