This file contains 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
$ echo -en "user@example.jp\0user@example.jp\0password" | base64 | pbcopy | |
$ socat -v SSL:smtp.gmail.com:465,verify=0,crlf - | |
EHLO localhost | |
AUTH PLAIN c3VwcG9ydEBtZWRpY.... | |
MAIL FROM: <user@example.jp> | |
This file contains 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
# ローカルの 2999 をリモートの 3000 にフォワード(接続)させる | |
$ ssh -vN -L 2999:127.0.0.1:3000 develop |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say language="ja-jp" voice="woman">サーバーおちたよ!</Say> | |
</Response> |
This file contains 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
echo -en "GET / HTTP/1.1\r\nHost: localhost\r\nUser-Agent: curl\r\n\r\n" | socat UNIX-CONNECT:/var/lib/web/medicil.sock - |
This file contains 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
curl --header 'Host: example.jp' http://127.0.0.1/ |
This file contains 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
$ aws s3 ls | awk -F" " '{print $3}' | xargs -I{} echo aws s3 sync s3://{} {} | sh |
This file contains 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
# 秘密鍵から公開鍵を取得 | |
$ openssl rsa -pubout -in server.key | |
# CSR から公開鍵を取得 | |
$ openssl req -pubkey -in server.csr | |
# CRT から公開鍵を取得 | |
$ openssl x509 -pubkey -in server.crt | |
# CSR を x509 形式で表示 | |
$ openssl req -text -noout -in server.csr | |
# 比較 |
This file contains 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
$ ruby -e '(0..(16*16-1)).map {|x| if (x/16) == (x%16) then 1 else 0 end }.each {|x| print x}' | fold -16 | tr '\n' ' ' |
This file contains 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 --no-check-certificate --spider -r http://example.jp 2>&1 | ggrep --line-buffer 'http://' | awk -F" " '{print $3; fflush()}' | tee urls.txt |
This file contains 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
tail -f access.log | awk -F'\t' '{print $2, $9, $7, $16}' |