brew install direnv
echo 'eval "$(direnv hook bash)"' >> ~/.bash_profile
echo 'export EDITOR=vim' >> ~/.bash_profile
. ~/.bash_profile
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
| #!/usr/bin/env python3 | |
| # Usage: python3 check_zip_encoding.py archive.zip | |
| # 出力: 各エントリの general purpose bit, UTF-8 フラグの有無, | |
| # ファイル名バイト列(16進), UTF-8 として解釈できるか, CP932 として解釈した表示, | |
| # 正規化の比較(NFC/NFD) | |
| import sys, struct, unicodedata | |
| if len(sys.argv) != 2: | |
| print("Usage: python3 check_zip_encoding.py archive.zip") |