転職しました。長らくのご愛顧誠にありがとうございました。
転職先をちょくちょく探しています。
興味ある方は twitter @mizchi へのリプライorDM、または [email protected] まで。
| #!/usr/bin/env python | |
| # vim: set fileencoding=utf-8 | |
| # | |
| # USAGE: | |
| # Back up your tmux old config, run the script and redirect stdout to your conf | |
| # file. Example: | |
| # | |
| # $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
| # $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
| # |
転職しました。長らくのご愛顧誠にありがとうございました。
転職先をちょくちょく探しています。
興味ある方は twitter @mizchi へのリプライorDM、または [email protected] まで。
| #!/usr/bin/env python3 | |
| """ | |
| License: MIT License | |
| Copyright (c) 2023 Miel Donkers | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./server.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer |
(WIP)
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| from botocore.credentials import RefreshableCredentials | |
| from botocore.session import get_session | |
| from boto3 import Session | |
| def assumed_session(role_arn, session_name, session=None): | |
| """STS Role assume a boto3.Session | |
| With automatic credential renewal. |
| math.randomseed(os.time()) | |
| local charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
| function string.random(length) | |
| if length > 0 then | |
| return string.random(length - 1) .. charset:sub(math.random(1, #charset), 1) | |
| else | |
| return "" | |
| end |
秘密鍵など誤ってコミットしてしまった場合に履歴を完全に削除する手順
参考:6.4 Git のさまざまなツール - 歴史の書き換え
$ git checkout -b clean-key-file