$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.1 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_HFS Macintosh HD 419.0 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 4: Microsoft Basic Data 80.2 GB disk0s4 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *8.1 GB disk1 1: DOS_FAT_32 NO NAME 8.1 GB disk1s1 $ diskutil unmountDisk /dev/disk1 Unmount of all volumes on disk1 was successful $ sudo dd if=CentOS-7-x86_64-DVD-1503-01.iso of=/dev/disk1 8419328+0 records in 8419328+0 records out 4310695936 bytes transferred in11507.233801 secs (374607 bytes/sec)
$ grep DocumentRoot /etc/apache2/httpd.conf # DocumentRoot: The directory out of which you will serve your DocumentRoot "/Library/WebServer/Documents"
1 2 3 4 5 6
$ pwd $ grep ErrorLog /etc/apache2/httpd.conf # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive w -rw-r--r-- 1 root wheel 903123088102520:39 access_log -rw-r--r-- 1 root wheel 3208194102520:38 error_log
ec2 $ chmod 400 ~/.ssh/dvp.pem alias sshec2=’ssh -i ~/.ssh/dvp.pem ec2-user@52.26.138.212’
嘸蝦米輸入法 直接安裝bin檔
homebrew - The missing package manager for OS X 安裝套件都放在/usr/local/Cellar底下
Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to OS X applications and large binaries alike. It only takes 1 line in your shell to reach 2835 Casks maintained by 434 contributors.
XtraFinder - 補強Finder功能
QLMarkdown is a simple QuickLook generator for Markdown files.
$ mvn package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven-test 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ maven-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/tomin.henrylee/Workspace/temp/maven-test/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ maven-test --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ maven-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/tomin.henrylee/Workspace/temp/maven-test/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ maven-test --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ maven-test --- [INFO] Surefire report directory: /Users/tomin.henrylee/Workspace/temp/maven-test/target/surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.henry.webapp.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ maven-test --- [INFO] Building jar: /Users/tomin.henrylee/Workspace/temp/maven-test/target/maven-test-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.147 s [INFO] Finished at: 2015-10-23T14:20:40+08:00 [INFO] Final Memory: 11M/220M [INFO] ------------------------------------------------------------------------
13:09 $ hexo server & [1] 3911 ✔ ~/Workspace/src.hamn07.github.io [master|✔] 13:09 $ INFO Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
$ hexo d INFO Deploying: git INFO Clearing .deploy folder... INFO Copying files from public folder... On branch master nothing to commit, working directory clean Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. FATAL Something wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Error: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
at ChildProcess.<anonymous> (/Users/Hamn/Workspace/src.hamn07.github.io/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:42:17) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5)