FANDOM


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
USERNAME ALL=(ALL) NOPASSWD: ALL
chmod -w /etc/sudoers
exit

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 "your_email@example.com"
  • ls ~/.ssh, id_rsa is private key, id_rsa.pub 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 id_rsa.pub

ssh without password Edit

  • id_rsa.pub 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
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
#add JAVA_HOME to ~/.bash_profile
JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export JAVA_HOME

install eclipse Edit

https://www.eclipse.org/downloads/

install idea Edit

install atom Edit

install sougou pinyin Edit

install chrome Edit

install vpn and anyconnect Edit

  • Request certificate

https://thehub.thomsonreuters.com/docs/DOC-739662

  • Anyconnect download

https://thehub.thomsonreuters.com/docs/DOC-1839280

install evernote from App Store Edit

install maven Edit

  • location
~/dev/maven
  • add MAVEN_HOME to PATH

install charles Edit

install tomcat Edit

  • location
/opt/tomcat

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