Version 4 (modified by jazz, 9 years ago) (diff) |
---|
2016-04-15
Gist
- http://defunkt.io/gist/
- https://github.com/defunkt/gist
- RubyGems 安裝:
gem install gist
- Mac 安裝
brew install gist
- Debian / Ubuntu 安裝
apt-get -y install gist
- 使用
- 登入
gist login
- 上傳單一檔案
gist file1
- 上傳多個檔案
gist file1 file2
- 上傳 STDIN 到指定檔名
指令 | gist -f "檔名"
- 複製 gist URL 到剪貼簿
指令 | gist -c
- 登入
Bash
- 偶爾會用到一些 Bash 的色塊 COLOR
- http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
- https://wiki.archlinux.org/index.php/Bash/Prompt_customization
- TLDP 的測試腳本可以在 gist 取得
- https://gist.github.com/jazzwang/55203a9f33386e0e567328fb86ebf7db
Gradle
- 使用 gradle init 產生 gradle 專案目錄的範本
~$ mkdir -p gradle-sample ~$ cd gradle-sample ~/gradle-sample$ gradle init :wrapper :init BUILD SUCCESSFUL Total time: 2.419 secs This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.12/userguide/gradle_daemon.html
- gradle init 產生的目錄結構如下:
. ├── build.gradle ├── gradle │ └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle 2 directories, 6 files