Skip to content

Instantly share code, notes, and snippets.

@mpaauw
mpaauw / nodejs-macbook-setup.md
Last active August 16, 2022 03:43
Macbook Pro setup documentation.

MacOS Setup Documentation: Node.js Workflow

If you're new to developing on a Mac, follow this guide to setup your machine's Node.js-based dev environment.

Install Homebrew

Go install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Node

@mpaauw
mpaauw / git-serve.md
Created February 24, 2017 01:16
How to easily launch a temporary one-off git server from any local repository, to enable a peer-to-peer git workflow.

Launch a one-off git server from any local repository.

I [tweeted this already][1] but I thought it could use some expansion:

Enable decentralized git workflow: git config alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"

Say you use a git workflow that involves working with a core "official" repository that you pull and push your changes from and into. I'm sure many companies do this, as do many users of git hosting services like Github.

Say that server, or Github, goes down for a bit.