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
Example execution: | |
python mailer.py --query-id 2226 --query-api-key 6764573853b4065aac3258b8c7bc561dc4179092 --org-slug default \ | |
--smtp-username "..." --smtp-password '...' --smtp-host 'smtp.mailgun.org' \ | |
--sender 'Arik <[email protected]>' --to '[email protected]' | |
--subject "Test" --body-html-file html --body-text-file text |
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
[Dec 26 09:28:48] ERROR [localhost] (5/5) Failed: SERVER, err: [Failed to detect OS: Unable to connect via SSH. Check SSH settings. If you have never SSH to the host to be scanned, SSH to the host before scanning in order to add the HostKey. [email protected] port: 22 | |
execResult: servername: SERVER | |
cmd: /usr/bin/ssh -tt -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -p 22 -i /root/.ssh/id_rsa_vuls -o PasswordAuthentication=no stty cols 1000; ls /etc/debian_version | |
exitstatus: 255 | |
stdout: | |
stderr: | |
err: %!s(<nil>)] |
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
dstat -tlmnd |
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
950 for (ttl = first_ttl; ttl <= max_ttl; ++ttl) { | |
951 u_int32_t lastaddr = 0; | |
952 int gotlastaddr = 0; | |
953 int got_there = 0; | |
954 int unreachable = 0; | |
955 int sentfirst = 0; | |
956 int loss; | |
957 | |
958 Printf("%2d ", ttl); | |
959 for (probe = 0, loss = 0; probe < nprobes; ++probe) { |
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; |
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
$ 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
[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
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
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 |