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
| ssh -f -N -L 13306:dbserver:3306 gatewayユーザー名@bastion |
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
| # unzip world.sql.zip | |
| # mysql -uroot -p < world.sql |
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
| vi README.md |
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
| VpcId="vpc-12345678" | |
| NewGroup="application.stg.sg" | |
| aws ec2 create-security-group --group-name ${NewGroup} --description "${NewGroup}" --vpc-id ${VpcId} --description "${NewGroup}" > create-security-group |
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
| worker: | |
| image: redash/redash:latest | |
| command: scheduler | |
| environment: | |
| PYTHONUNBUFFERED: 0 | |
| REDASH_LOG_LEVEL: "INFO" | |
| REDASH_REDIS_URL: "redis://redis:6379/0" | |
| REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres" | |
| QUEUES: "queries,scheduled_queries,celery" | |
| WORKERS_COUNT: 1 |
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
| wget https://github.com/bcicen/ctop/releases/download/v0.7.1/ctop-0.7.1-linux-amd64 -O /usr/local/bin/ctop | |
| chmod +x /usr/local/bin/ctop |
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
| [root@tkd003 tmp]# which less | |
| /usr/bin/less |
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
| $ scp TargetServer:/tmp/sample /tmp/sample | |
| scp: /tmp/sample: Permission denied | |
| $ |
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
| scp -r -o "ProxyCommand ssh -i ~/.ssh/key ユーザー@踏み台 -W %h:%p" testdir ユーザー@送信先:/tmp/. | |
| もしくは | |
| scp -r -o "ProxyCommand ssh -i ~/.ssh/key ユーザー@踏み台 nc %h %p" testdir ユーザー@送信先:/tmp/. |
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/sh | |
| TABLE=BITHUMB_JPY_BTC | |
| ORIGINALPRICE=`curl -s https://api.bithumb.com/public/ticker/BTC | jq -r '.data.buy_price'` | |
| RATE=`curl -s http://api.aoikujira.com/kawase/json/krw | jq -r '.JPY'` | |
| PRICE=`echo "scale=0 ; $ORIGINALPRICE * $RATE" | /usr/bin/bc` | |
| echo "insert into $TABLE(price) values(${PRICE%.*});" > sql/$TABLE.sql; |
NewerOlder