user name Edit

user: yufei

add shortcut Edit

System Preference -> Keyboard - > Shortcut -> App Shortcuts -> (F10 Sleep), (F9 Shut Down...)

xcode Edit

install Xcode from App Store

install command line tools Edit

xcode-select --install

shell related Edit

sudo without password Edit

sudo su
chmod +w /etc/sudoers
# add follow line
chmod -w /etc/sudoers

add ~/.bash_profile Edit

touch ~/.bash_profile

ls show color Edit

vim ~/.bash_profile
#add alias
alias ls='ls -G'

crearte some dirs Edit

>mkdir ~/dev
>mkdir ~/work_notes
>mkdir ~/books
>sudo mkdir /rt
>sudo chown yufei:staff /rt

ssh-keygen Edit

ssh-keygen -t rsa -C ""
  • ls ~/.ssh, id_rsa is private key, is public key
ls -la
-rw-------   1 yufei  staff  1675 Jan 20 21:28 id_rsa
-rw-r--r--   1 yufei  staff   400 Jan 20 21:28

ssh without password Edit

  • is your public key, put it's content to the remote machine ~/.ssh/authorized_keys

install homebrew Edit

brew -v

install wget Edit

brew install wget

brew install memcached Edit

brew update
brew doctor
brew install memcached
  • install lunchy
sudo gem install lunchy
cp /usr/local/Cellar/memcached/$version/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents/
lunchy start memcached
lunchy stop memcached

install tree Edit

brew install tree

install python Edit

brew install python
## check python version
python --version

install boto3 Edit

pip install boto3

install jinja2 Edit

pip install jinja2

install pyyaml Edit

pip install pyyaml

install jdk Edit

/usr/libexec/java_home -v 1.8
#add JAVA_HOME to ~/.bash_profile
JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export JAVA_HOME

install eclipse Edit

install idea Edit

install atom Edit

install sougou pinyin Edit

install chrome Edit

install vpn and anyconnect Edit

  • Request certificate

  • Anyconnect download

install evernote from App Store Edit

install maven Edit

  • location
  • add MAVEN_HOME to PATH

install charles Edit

install tomcat Edit

  • location

install synergy Edit

config python project in idea Edit

File - Project Structure - Project - Project SDK , select /usr/local/bin/python (python installed by brew)

idea show empty string Edit

Appearance - Editor - Appearance - Show whitespace

install nvm Edit

install docker Edit

Community content is available under CC-BY-SA unless otherwise noted.