Skip to content

Instantly share code, notes, and snippets.

@satirama
Forked from jorandradefig/gist:76f77e5c3010183eb50ca3bb7c70143c
Last active January 28, 2020 00:04
Show Gist options
  • Save satirama/1e226df1de5612abaae9fd14e0767955 to your computer and use it in GitHub Desktop.
Save satirama/1e226df1de5612abaae9fd14e0767955 to your computer and use it in GitHub Desktop.
macOS Setup Guide
Evernote
Firefox Developer Edition
Flutter
Google Chrome
Fabric
Genymotion
TeamViewer
Telegram Desktop
Visual Studio Code
Xcode
Battle.net
Google Drive File Stream
VirtualBox
Android Studio
Dropbox
Expo
Google Drive
Docker
Vagrant
Spectacle
Signal
Skype
Fantastical
Postman
FileZilla
Cyberduck
Newton
SourceTree
Dash
Robomongo
Arduino
Stickies
Zeplin
Sketch
CheatSheet https://www.mediaatelier.com/CheatSheet/
Focus To-Do
Ostinato
RStudio
PSequel
Endurance
KeePassXC
Tunnelblick
VMware Fusion
GNS3
Wireshark
MAMP
XAMPP
ZOOM
Slack
Replit
CodePen
Firebase
GitBook
GitHub
GitLab
Bitbucket
Trello
Asana
Slack
Pastebin

Download Xcode in the App Store

Install Xcode command line tools

xcode-select --install

Configure Git

git config --global user.name "Jorge Andrade"
git config --global user.email jorandradefig@gmail.com
git config --global color.ui true
git config --global core.editor "vim"

Git set remote URLs

git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git

Git Submodules

git clone --recursive https://jorandradefig@gitlab.com/databox/databox-suite.git
git submodule add git@gitlab.com:databox/hq.git
git submodule update --remote

Download Homebrew

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

ZSH

Download Oh My Zsh

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

Edit the .zshrc file

ZSH_THEME="agnoster"

Add at the bottom of the file to hide hostname info. agnoster/agnoster-zsh-theme#39

prompt_context() {
  if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
  fi
}

Download Powerline Fonts

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh

Add Dracula Theme to terminal

https://draculatheme.com/terminal/

Terminal > Preferences > Profiles 
Click "Gear" icon
Click Import...
Select the Dracula.terminal file
Click Default

Configurate Terminal window size and font

125 columns x 35 lines
Space Mono for Powerline 12pt

Alias for cd ..

..
...

zsh plugins

https://github.com/wting/autojump
https://github.com/junegunn/fzf
https://github.com/sharkdp/bat
https://github.com/sharkdp/fd
https://github.com/BurntSushi/ripgrep
https://github.com/zsh-users/zsh-autosuggestions
https://github.com/chrissicool/zsh-256color
https://github.com/zsh-users/zsh-history-substring-search
https://github.com/zsh-users/zsh-completions
https://github.com/zsh-users/zsh-syntax-highlighting

brew install autojump
brew install fzf
$(brew --prefix)/opt/fzf/install
brew install bat
brew install fd
brew install ripgrep
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
( cd $ZSH_CUSTOM/plugins && git clone https://github.com/chrissicool/zsh-256color )
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

see all zsh shortcuts

bindkey
ls -<TAB>

Configure Vim

https://www.dropbox.com/s/o6og56bcgzm5jpi/.vimrc\?dl\=0

curl -o ~/.vimrc https://www.dropbox.com/s/o6og56bcgzm5jpi/.vimrc\?dl\=0

brew install vim
exec -l $SHELL
brew install cmake
brew install ctags
brew install editorconfig
brew install wget

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Launch vim and run :PluginInstall

cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer

Download Node

brew update
brew install node
npm install -g n
sudo n lts

Configure npm

npm config set init.author.name "Angelica Miranda"
npm config set init.author.email mirandas.angelica@gmail.com
npm config set init.author.url satirama.github.io
npm config set init.license MIT

Node installs & cli

npm install -g @angular/cli
npm install -g @vue/cli
npm install -g http-server
npm install -g sails

npm install -g typescript
npm install -g ngrok
npm install -g svg-term-cli
npm install -g vtop

For older projects

npm install -g bower
npm install -g yo gulp-cli

React

npx create-react-app my-app

Download Yarn

brew install yarn

Bash

Must:

brew install ctop
brew install ffmpeg
brew install git-lfs
brew install htop
brew install pngquant

Optional:

brew install asciinema
brew install exa
brew install figlet
brew install jq
brew install optipng
brew install parallel
brew install tmux

Gzip

gzip filename.csv
gzip -d filename.csv.gz

MongoDB

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

PostgreSQL

brew install postgresql
psql postgres

pg_ctl -D /usr/local/var/postgres -l logfile start
pg_ctl -D /usr/local/var/postgres -l logfile stop

psql

CREATE ROLE username WITH LOGIN PASSWORD 'username';
ALTER USER username CREATEDB;
CREATE DATABASE databasename;
GRANT ALL PRIVILEGES ON DATABASE databasename TO username;
ALTER USER username WITH SUPERUSER;
\connect databasename

Python 3

pip3 install pylint
pip3 install awscli

Jupyter

pip3 install --upgrade pip
pip3 install jupyter
pip3 install numpy scipy matplotlib pandas xlrd sympy nose scikit-learn theano tensorflow scrapy nltk seaborn bokeh networkx
jupyter notebook
jupyter nbconvert --to html mynotebook.ipynb

Redis

brew install redis
redis-server /usr/local/etc/redis.conf
redis-cli ping

Docker

https://www.docker.com/docker-mac

brew cask install docker

docker images
docker ps -a
docker logs <container id>
docker exec -it <container id> /bin/bash
curl -i localhost:49160

docker stop <container id>

docker rm <container id>
docker rmi <image id>

docker stop $(docker ps -a -q)

docker rm $(docker ps -a -q)
docker rmi $(docker images -q)

Docker without volume

docker build -t <image name:tag> .
docker run --name <container name> -p 49160:4200 -d <image name:tag>

Docker with volume

docker build -t <image name:tag> .
docker run --name <container name> -v $(pwd):/usr/src/app -p 49160:4200 -d <image name:tag> /bin/bash -c "npm install && npm start"
docker exec -it <container id> /bin/bash -c "npm install && npm start"

Lighthouse

npm install -g lighthouse

lighthouse https://airhorner.com/

iOS

CocoaPods

sudo gem install cocoapods

Download Visual Studio Code

Dracula Theme for vscode

https://draculatheme.com/visual-studio-code/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment