Skip to content

Instantly share code, notes, and snippets.

@koistya
Forked from DenisIzmaylov/INSTALLATION.md
Last active February 20, 2024 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koistya/5281881346f00a35196f to your computer and use it in GitHub Desktop.
Save koistya/5281881346f00a35196f to your computer and use it in GitHub Desktop.

Mac OS X

Content

Appearance

WebStorm

Xcode Command Line Tools

  • Install XCode in App Store
  • Then open Xcode > Preferences > Downloads > Command Line Tools or execute in Terminal:
xcode-select --install

Git

Setup

git config --global user.name "Denis Izmaylov"
git config --global user.email "example@izmy.lv"

Configure GitHub

There is 2 ways to configure keys. The first is:

  • Create new key:
ssh-keygen -t rsa -C "example@izmy.lv"
  • Copy public key:
cat ~/.ssh/id_rsa.pub
  • Add it to github.com

The second way was just to backup your ~/.ssh before re-install and restore it now. Be aware - private keys should have 0400 access.

Test connection

ssh -T git@github.com

Homebrew

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

Node.js Environment

npm install gulp eslint webpack node-inspector -g

Database

Redis

  • Install
brew install redis
  • Launch:
launchctl load /usr/local/opt/redis/homebrew.mxcl.redis.plist
  • To have launchd start redis at login:
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

MongoDB

  • Try to install with Homebrew:
brew install mongodb
  • If you could not install with Homebrew try to do it manually:
curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.0.4.tgz
tar -zxvf mongodb-osx-x86_64-3.0.4.tgz
mv mongodb-osx-x86_64-3.0.4/ /usr/local/opt/mongodb
export PATH=/usr/local/opt/mongodb/bin:$PATH
echo export PATH=/usr/local/opt/mongodb/bin:\$PATH>~/.bashrc
mkdir -p ~/data/mongodb
  • Then execute in Terminal:
sudo mongodb --dbpath=~/data/mongodb 

PostgreSQL

  • Install:
brew install postgres
  • Launch:
launchctl load /usr/local/opt/postgresql/homebrew.mxcl.postgresql.plist
  • To have launchd start postgres at login:
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents

Applications

  • Communication:
  • Skype (use ~/Library/Application Support/Skype directory to create/restore your chat history backup)
  • Telegram
  • Gitter
  • Slack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment