Skip to content

Instantly share code, notes, and snippets.

@jeppeburchardt
Created June 9, 2016 12:40
Show Gist options
  • Save jeppeburchardt/d1730283b44413da039d48f7e9b54ceb to your computer and use it in GitHub Desktop.
Save jeppeburchardt/d1730283b44413da039d48f7e9b54ceb to your computer and use it in GitHub Desktop.
Setup RAM disk, install repo and start rsync
diskutil erasevolume HFS+ 'TSRAM' `hdiutil attach -nomount ram://4194304`
cd /Volumes/TSRAM && pwd
git clone [email protected]:trendsales/frontend-architecture.git
cd frontend-architecture && pwd
npm install
./sync.sh
export GREP_COLOR='1;35'
cd /Volumes/TSRAM/frontend-architecture && pwd
fswatch ~/trendsales/frontend-architecture | xargs -n 1 -I {} rsync -av ~/trendsales/frontend-architecture /Volumes/TSRAM --exclude "frontend-architecture/node_modules" --exclude "frontend-architecture/.git" --exclude "frontend-architecture/build" | grep --color . &
npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment