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
* 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 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 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 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 python | |
# -*- coding: utf-8 -*- | |
import pathlib2 | |
def recursive_file_search_with_pattern(root_path, pattern): | |
pl_dir = pathlib2.Path(root_path) | |
file_list = [path.resolve() |
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
~/anaconda3/envs/
conda env list
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Display disk stats | |
""" | |
import shutil | |
total, used, free = shutil.disk_usage("/") | |
print("DISK SPACE") |
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
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html | |
# Create | |
conda create --name myenv | |
conda create -n myenv python=3.7 | |
conda create -n myenv python=3.7 scipy=0.15.0 astroid babel |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Find characters with ASCII code greater than 127. | |
usage: | |
cd /DIRECTORY_TO_CHECK/ | |
python /PATH_TO/check_char.py |