-
バックグラウンドでダミーSMTPサーバー起動
- nohup python -m smtpd -n -c DebuggingServer localhost:1025 > /var/log/DebuggingServer &
-
DebuggingServer に出しているメール内容を文字化けなしで見る
-
tailf DebuggingServer | nkf -u -w
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
/** | |
* @param array $requestBody | |
* @param string $uri | |
* @param string $method | |
* @return JsonResponse|null | |
*/ | |
public function validateRequestCompliantForOpenApiSpec( | |
array $requestBody, | |
string $uri, | |
string $method |
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
resource "azurerm_subnet" "example-subnet" { | |
name = "example-subnet" | |
virtual_network_name = azurerm_virtual_network.example_vnet.name | |
resource_group_name = azurerm_resource_group.example_rg.name | |
address_prefixes = ["172.31.20.0/24"] | |
#address_prefix = "172.31.20.0/24" | |
} |
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
$ vagrant box add {title} {url} | |
$ vagrant init {title} |
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
IdentityFile ~/.ssh/id_rsa | |
IdentityFile ~/.ssh/id_rsa_screenshot | |
Host github.com | |
Compression yes | |
IdentityFile ~/.ssh/id_rsa_sogaoh |
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
#!/bin/sh | |
while read LINE ;do | |
i=0 | |
for inline in $LINE ;do | |
case $inline in | |
*'@'*) echo $inline \ | |
| gawk '{a=substr($0,1,match($0,"@")-1);\ | |
c=gensub(/[a-z]|[0-9]|[A-Z]/,"*","g",a);\ | |
b=substr($0,match($0,"@"));printf"%s%s",c,b}' ;; | |
*) echo -n "$inline ";; |