python CI/updateVersion.py %NEW_VERSION%
pyinstaller testApp.py --version-file "CI/version.py"
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 | |
| """ | |
| Yet another simple binary patcher | |
| """ | |
| patches = [ | |
| { | |
| # 1 Windows x64, version 3, build 1234 | |
| 'file': 'file_1.bin', | |
| 'offset': 0x0BA950, | |
| 'original': b'\x00', |
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
| ## 安裝語系檔 | |
| `$ sudo locale-gen "en_US.UTF-8"` | |
| ## 重新設定語系檔 | |
| `$ sudo dpkg-reconfigure locales` | |
| ## 設定檔 |
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
| ctrl + w + h 光标 focus 左侧树形目录 | |
| ctrl + w + l 光标 focus 右侧文件显示窗口 | |
| ctrl + w + w 光标自动在左右侧窗口切换 | |
| ctrl + w + r 移动当前窗口的布局位置 | |
| o 在已有窗口中打开文件、目录或书签,并跳到该窗口 | |
| go 在已有窗口 中打开文件、目录或书签,但不跳到该窗口 | |
| t 在新 Tab 中打开选中文件/书签,并跳到新 Tab | |
| T 在新 Tab 中打开选中文件/书签,但不跳到新 Tab | |
| i split 一个新窗口打开选中文件,并跳到该窗口 | |
| gi split 一个新窗口打开选中文件,但不跳到该窗口 |
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 | |
| from __future__ import print_function | |
| from tempfile import TemporaryFile | |
| from binascii import hexlify | |
| from ctypes import * | |
| class StructHelper(object): | |
| def __get_value_str(self, name, fmt='{}'): | |
| val = getattr(self, name) |