This file contains hidden or 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
| cask_args appdir: "/Applications" | |
| brew "curl" | |
| brew "git" | |
| brew "goenv" | |
| brew "jq" | |
| brew "openssl" | |
| brew "mysql-client" | |
| brew "pyenv" | |
| brew "rbenv" | |
| brew "tcptraceroute" |
This file contains hidden or 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
| #!/bin/bash | |
| # -*- coding: utf-8 -*- | |
| set -o nounset -o errexit -o pipefail | |
| role_name=myLambdaRole | |
| rest_api_name="Get Client Info" | |
| stage_name="prod" | |
| resource_path="/client_info" | |
| function_name="getClientInfo" |
This file contains hidden or 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
| #!/bin/bash | |
| # -*- coding: utf-8 -*- | |
| export PATH=/usr/local/bin:/usr/local/sbin/:/usr/bin/:/usr/sbin/:/bin/:/sbin/ | |
| ## Avoid reentrance. | |
| exec 9< $0 | |
| perl -mFcntl=:flock -e "open(LOCK,'<&=9');exit(!flock(LOCK,LOCK_EX|LOCK_NB))" || exit 0 | |
| ## Exit for error or undefined. |
This file contains hidden or 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
| function updateTable(tbl, cells) { | |
| while (tbl.firstChild) { | |
| tbl.removeChild(tbl.firstChild); | |
| } | |
| for (var i = 1; i < cells.length; i ++) { | |
| var tr = document.createElement("tr") | |
| tbl.appendChild(tr) | |
| for (var j = 1; j < cells[i].length; j ++) { | |
| if (cells[i] === void 0) { | |
| continue |
This file contains hidden or 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
| #!/bin/bash | |
| # -*- coding: utf-8 -*- | |
| # db=~/Library/Kobito/Kobito.db # DB path for older version of Kobito | |
| db=~/Library/Containers/com.qiita.Kobito//Data/Library/Kobito/Kobito.db | |
| dir=~/kobito/ | |
| encode_filename() { | |
| name="$@" | |
| name="${name//%/%37}" |