Skip to content

Instantly share code, notes, and snippets.

@kdabir
Last active November 24, 2022 21:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdabir/7368392 to your computer and use it in GitHub Desktop.
Save kdabir/7368392 to your computer and use it in GitHub Desktop.
Clean Setup on Mac

Cleaning up the mac

Before formatting/wiping out all the data

After format/ OS install

  • create username, select image

Setting System Preferences right:

Trackpad

  • tap to click
  • gestures for expose, switch desktop etc to 4 fingers instead of 3

Keyboard

  • Function keys as function
  • To enable keyboard for tab on controls in Keyboard shortcuts see at bottom - Full keyboard access - select all Controls
  • keep delay between repeat to shortest
  • repeat to fastest
  • keyboard shortcuts

Dock

  • move to left
  • minimize windows to icon
  • reduce size
  • remove unneccesary icons

Menubar

  • show percentage for battery
  • show only tme (no day)

Finder

  • Show hidden files in finder:
    • go to terminal
    • defaults write com.apple.Finder AppleShowAllFiles TRUE
    • killall Finder
  • open /User in Terminal and add home to shortcuts in Finder
  • Open finder preference, open new finder in user home instead of all files
  • Advanced - show all filename extensions

Security and Privacy

  • General
    • Allow applications downloaded from : Anywhere

Basic Software Install

Chrome
Evernote
  • set view to desired one
Alfred
  • choose bigger font theme,
  • hide alfread from menu bar
Dropbox
  • give name to machine
  • choose black and white menu bar icon
MS Office / Libre Office
Skype
Any password manager, 1Password, lastpass ...

Dev Setup

Xcode (I hate to install XCode)

Important - Install command line tools Xcode -> preferences (⌘ + ,) -> Downloads -> Components -> command line tools

iTerm
  • change font size for default profile
  • open in last session
  • vertical bar, blinking
  • in the profile keycap CTRL TAB sends some hex keys, remove that mapping to set CTRL TAB to rotate between open tabs
  • TODO Need to figure out .inputrc stuff etc.
  • TODO word jumping with alt arrow
Sublime text
  • enter license info
  • ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/sublime
  • TODO install package manager
IntelliJ IDEA
  • select the required plugins.
  • import the settings from the already backed up jar file
  • TODO how to store idea settings in dotfiles project
Rubymine
  • enter licesnse
  • keymap - macosx10.5+, Darcula, Railscast
  • TODO how to store idea settings in dot files project
SourceTree <3

  • Edit /etc/hostconfig
    • add HOSTNAME=yourname
    • this appers in prompt
Install zsh
git clone git://github.com/kdabir/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
The dot files
git checkout yourrepo/dotfiles.git ~/dotfiles
cd dotfiles
makelinks.sh
Generate SSH keys
  #to check if some keys already exist
  $ ls ~/.ssh
  $ ssh-keygen -t rsa
  $ ls ~/.ssh
  id_rsa      id_rsa.pub  known_hosts
  $ pbcopy < ~/.ssh/id_rsa.pub  
  • add keys to bitbucket, github, heroku etc...

Package Manager

Install brew (homebrew)

sudo chmod o-w /usr/local (to fix permissions issue)
sudo chown -R $USER /usr/local 

Misc Command line tools

brew install autojump
brew install cloc
brew install ack
brew install youtube-dl
brew install fdupes
brew install tree
brew install tig
  • install pdftk

Ruby Ecosystem

Install rvm
curl -L https://get.rvm.io | bash
rvm install 1.9.3     
rvm install 2.0.0 
rvm --default 2.0.0 
Install bundler
gem install bundler
Install POW
curl get.pow.cx | sh
gem install powder

Jvm ecosystem

JDK/Java

  • Install oracle jdk7.
  • ant and mvn are already installed on mac.
Groovy

Install gvm as its better to manage groovy ecosytem : curl -s get.gvmtool.net | bash

  • $ gvm install groovy
  • $ gvm install gradle
Scala
  • $ brew install scala
  • $ brew install sbt
Clojure
  • brew install clojure
  • brew install leiningen

Node

  • brew install node
  • check npm -v and node -v
  • npm install -g coffee-script
  • npm install -g yo

add it to zshrc export PATH=/usr/local/share/npm/bin:$PATH

MongoDB

  • $ brew install mongodb

  • Remember to check output

To have launchd start mongodb at login:
    mkdir -p ~/Library/LaunchAgents
    ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

Then to load mongodb now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

Or, if you don't want/need launchctl, you can just run:
    mongod

Virtual Machines -

Cloud Dev

Misc

brew install mobile-shell

sudo easy_install pip

http://whomwah.github.io/qlstephen/
mkdir ~/Library/QuickLook
unzip QLStephen.qlgenerator.zip
copy it there

npm install yo -g

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