例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
| # Generate a BaseSystem.dmg with 10.13 Install Packages | |
| hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra | |
| hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
| asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase | |
| cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation | |
| hdiutil detach /Volumes/OS\ X\ Base\ System/ | |
| hdiutil detach /Volumes/highsierra/ | |
| mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg |
以下転載:
| OpsWorks stack RGB color value reference, with closest possible english names that I could think of. | |
| For use in CLI or other non GUI tools like Terraform. | |
| Cosmic Purple : rgb(135, 61, 98) | |
| Purple: rgb(111, 86, 163) | |
| Blue: rgb(45, 114, 184) | |
| Teal: rgb(38, 146, 168) | |
| Green: rgb(57, 131, 94) | |
| Olive Drab: rgb(100, 131, 57) | |
| Mustard yellow (golden): rgb(184, 133, 46) |
| sudo -i | |
| /opt/aws/opsworks/current/bin/chef-zero & | |
| cd /var/chef/runs/*/ | |
| opsworks-agent-cli get_json > attributes.json | |
| /opt/aws/opsworks/current/bin/chef-shell -c client.rb -j attributes.json -z -S http://localhost:8889 |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l| # | |
| # | |
| # | |
| # | |
| - ー 1 | |
| a あ 1 | |
| i い | |
| u う 1 |
| console.log('Loading function'); | |
| const https = require('https'); | |
| const url = require('url'); | |
| // to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
| const slack_url = 'https://hooks.slack.com/services/...'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = {'Content-Type': 'application/json'}; |