Lokvin Wiki
Tag: sourceedit
Tag: sourceedit
 
(19 intermediate revisions by the same user not shown)
Line 33: Line 33:
 
>sudo mkdir /rt
 
>sudo mkdir /rt
 
>sudo chown yufei:staff /rt
 
>sudo chown yufei:staff /rt
  +
  +
===ssh-keygen ===
  +
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 ====
  +
* id_rsa.pub is your public key, put it's content to the remote machine ~/.ssh/authorized_keys
   
 
== install homebrew ==
 
== install homebrew ==
Line 40: Line 51:
 
=== install wget ===
 
=== install wget ===
 
brew install wget
 
brew install wget
  +
  +
=== brew install memcached ===
  +
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 ===
 
=== install tree ===
 
brew install tree
 
brew install tree
  +
  +
=== install python ===
  +
brew install python
  +
## check python version
  +
python --version
  +
  +
==== install boto3 ====
  +
pip install boto3
  +
  +
==== install jinja2 ====
  +
pip install jinja2
  +
  +
==== install pyyaml ====
  +
pip install pyyaml
   
 
== install jdk ==
 
== install jdk ==
Line 58: Line 94:
 
== install idea ==
 
== install idea ==
 
* http://www.jetbrains.com/idea/
 
* http://www.jetbrains.com/idea/
  +
== install atom ==
  +
* https://atom.io
  +
== install sougou pinyin ==
  +
* http://pinyin.sogou.com/mac/
  +
  +
== install chrome ==
  +
  +
== install vpn and anyconnect ==
  +
*Request certificate
  +
https://thehub.thomsonreuters.com/docs/DOC-739662
  +
  +
*Anyconnect download
  +
https://thehub.thomsonreuters.com/docs/DOC-1839280
  +
  +
== install evernote from App Store ==
  +
== install maven ==
  +
* location
  +
~/dev/maven
  +
* add MAVEN_HOME to PATH
  +
  +
== install charles ==
  +
== install tomcat ==
  +
* location
  +
/opt/tomcat
  +
  +
== install synergy ==
  +
* https://symless.com/
  +
  +
== config python project in idea ==
  +
File - Project Structure - Project - Project SDK , select /usr/local/bin/python (python installed by brew)
  +
  +
=== idea show empty string ===
  +
Appearance - Editor - Appearance - Show whitespace
  +
  +
== install nvm ==
  +
* https://github.com/creationix/nvm
  +
  +
== install docker ==

Latest revision as of 15:46, 16 February 2017

user name[]

user: yufei

add shortcut[]

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

xcode[]

install Xcode from App Store

install command line tools[]

xcode-select --install

shell related[]

sudo without password[]

sudo su
chmod +w /etc/sudoers
# add follow line
USERNAME ALL=(ALL) NOPASSWD: ALL
chmod -w /etc/sudoers
exit

add ~/.bash_profile[]

touch ~/.bash_profile

ls show color[]

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

crearte some dirs[]

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

ssh-keygen[]

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[]

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

install homebrew[]

brew -v

install wget[]

brew install wget

brew install memcached[]

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[]

brew install tree

install python[]

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

install boto3[]

pip install boto3

install jinja2[]

pip install jinja2

install pyyaml[]

pip install pyyaml

install jdk[]

/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[]

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

install idea[]

install atom[]

install sougou pinyin[]

install chrome[]

install vpn and anyconnect[]

  • Request certificate

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

  • Anyconnect download

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

install evernote from App Store[]

install maven[]

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

install charles[]

install tomcat[]

  • location
/opt/tomcat

install synergy[]

config python project in idea[]

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

idea show empty string[]

Appearance - Editor - Appearance - Show whitespace

install nvm[]

install docker[]