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 | |
| import os | |
| from PIL import Image | |
| def get_file_list(): | |
| """ ___ """ |
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 | |
| """ | |
| Aide mémoire Python | |
| Ceci est un exemple de docstring. | |
| """ |
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
| ._.DS_Store | |
| .DS_Store | |
| *.FCStd1 | |
| *ajeter* | |
| *ajeter*/ | |
| *norclone* | |
| *norclone*/ | |
| WifiSettings.h | |
| [wW][iI][fF][iI][sS][eE][tT][tT][iI][nN][gG][sS].* | |
| ESPSettings.h |
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
| https://play.google.com/store/apps/details?id=me.zhanghai.android.files | |
| # use bash, not zsh to install | |
| bash | |
| curl https://rclone.org/install.sh | sudo bash | |
| # get .rcloneignore | |
| curl https://gist.githubusercontent.com/NicHub/56c64b1bec61695d2a9e0102ca3232cf/raw/2c4980626588e4f148e861206c995906172cc2c9/.rcloneignore > ~/.rcloneignore | |
| rclone obscure "" |
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
| * text=auto | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| # Unity YAML | |
| *.anim -text merge=unityyamlmerge diff | |
| *.asset -text merge=unityyamlmerge diff | |
| *.controller -text merge=unityyamlmerge diff |
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
| setopt INTERACTIVE_COMMENTS | |
| setopt AUTO_CD | |
| ### | |
| # https://gist.github.com/NicHub/878f96c6af153d53a07e7cfe49afddfd | |
| # https://scriptingosx.com/2019/07/moving-to-zsh-06-customizing-the-zsh-prompt/ | |
| ## | |
| ### | |
| # Left prompt |
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
conda env list
conda create --name myenv python=3.6.9
conda activate myenv
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
| """ | |
| lsserial.py | |
| This script lists the serial devices connected in verbose and summarized lists. | |
| It is tested on Python3 only. | |
| If you prefer a single line command, there are some alternatives below. | |
| # Prerequisites | |
| pip install pyserial |
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
| """ | |
| Python recursive file search with pattern | |
| """ | |
| import pathlib2 | |
| def recursive_file_search_with_pattern(root_path, pattern): | |
| pl_dir = pathlib2.Path(root_path) | |
| file_list = [path.resolve() |