This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # uninstall Adobe AIR | |
$ open /Applications/Utilities/Adobe\ AIR\ Uninstaller.app | |
$ # search Files and Directories for Abode Software | |
$ sudo find / -name *Adobe* | |
$ sudo find / -name *Acrobat* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # run all Adobe Reader with the follow commands ... | |
$ sudo rm -rf /Applications/Adobe | |
$ sudo rm -rf /Applications/AdobeReader9 | |
$ sudo rm -rf /Library/Application Support/Adobe | |
$ sudo rm -rf /Users/<USERNAME>/Library/Caches/Adobe | |
$ sudo rm -rf /Users/<USERNAME>/Library/Logs/Adobe | |
$ sudo rm -rf /Library/Logs/HangReporter/AdobeReader | |
$ sudo rm -rf /Library/Internet\ Plug-Ins | |
$ sudo rm -rf /Applications/Utilities/Adobe\ Utilities.localized | |
$ sudo rm -rf /Users/<USERNAME>/Library/Application\ Support/Adobe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # create directory | |
$ mkdir /Library/Internet\ Plug-Ins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -version | |
java version "1.5.0_22" | |
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03-333-9M3125) | |
Java HotSpot(TM) Client VM (build 1.5.0_22-147, mixed mode, sharing) | |
$ | |
$ cd /System/Library/Frameworks/JavaVM.framework/Versions | |
$ ls | |
1.3 1.3.1 1.4 1.4.1 1.4.2 1.5 1.5.0 1.6 1.6.0 A Current CurrentJDK | |
$ sudo mv CurrentJDK XxxCurrentJDK | |
Password: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # 下载cassandra源代码 | |
$ svn co https://svn.apache.org/repos/asf/incubator/cassandra/tags/cassandra-0.5.0/ cassandra-0.5.0 | |
cd cassandra-0.5.0 | |
$ | |
$ # 创建cassandra所需要的目录 | |
$ sudo mkdir -p /var/log/cassandra | |
Password: | |
$ sudo chown -R `whoami` /var/log/cassandra | |
$ sudo mkdir -p /var/lib/cassandra | |
$ sudo chown -R `whoami` /var/lib/cassandra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~/Library/Preferences/Aquamacs\ Emacs/ | |
$ ls | |
Preferences.el auto-save-list minibuffer-history.el | |
$ git clone git://github.com/walter/aquamacs-emacs-starter-kit.git | |
$ ls | |
Preferences.el aquamacs-emacs-starter-kit auto-save-list minibuffer-history.el | |
$ vim ~/Library/Preferences/Aquamacs\ Emacs/Preferences.el | |
$ | |
## 在文件Preferences.el中需要增加的代码 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ~/temp | |
$ curl -O http://ftp.gnu.org/gnu/readline/readline-6.0.tar.gz | |
$ tar -xzf readline-6.0.tar.gz | |
$ cd readline-6.0 | |
$ ./configure --prefix=/opt/local | |
$ make && sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mkdir -p /opt/ruby19 | |
$ sudo chown $USER /opt/ruby19 | |
$ sudo mkdir -p /opt/local | |
$ sudo chown $USER /opt/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ~/temp | |
$ curl ftp://ftp.ruby-lang.org//pub/ruby/ruby-1.9-stable.tar.gz | |
$ tar -xzf ruby-1.9-stable.tar.gz | |
$ cd ruby-1.9.1-p376 | |
$ autoconf | |
$ ./configure --prefix=/opt/ruby19 --enable-shared | |
$ make && sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~ | |
vim ~/.profile | |
# file .profile | |
... | |
alias ruby19ify="export PATH=/opt/ruby19/bin:$PATH" | |
... | |
$ source ~/.profile | |
$ ruby -v | |
$ ruby19ify | |
$ ruby -v |