https://mitxela.com/projects/dotfiles_management
alias dotfiles='git --git-dir=/home/mx/.dotfiles --work-tree=/'dotfiles config --local status.showUntrackedFiles nohttps://mitxela.com/projects/dotfiles_management
alias dotfiles='git --git-dir=/home/mx/.dotfiles --work-tree=/'dotfiles config --local status.showUntrackedFiles no| $ ipython | |
| Python 3.8.4 (v3.8.4:dfa645a65e, Jul 13 2020, 10:45:06) | |
| Type 'copyright', 'credits' or 'license' for more information | |
| IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help. | |
| In [1]: from langchain.agents import Tool, initialize_agent | |
| ...: from langchain.agents import load_tools | |
| ...: from langchain.llms import OpenAI | |
| ...: |
| $ defaults write -g InitialKeyRepeat -int 13 | |
| $ defaults write -g KeyRepeat -int 1 |
| data:text/html,<body contenteditable style=font-family:monospace;line-height:1.5;font-size:24px><script> window.onbeforeunload = function(e) { e.preventDefault();return ''; }; </script> |
| #!/usr/bin/env python | |
| import subprocess | |
| from pathlib import Path | |
| output = subprocess.run(['git', 'ls-files'], stdout=subprocess.PIPE, text=True, check=True) | |
| paths = [Path(path) for path in output.stdout.strip().split('\n')] | |
| for path in paths: | |
| print(path) |
| git ls-files -c -o -z --exclude-standard | xargs -0 file --mime-type | grep 'text/' | cut -d: -f1 | xargs -I{} sh -c 'echo \<file name=\"{}\"\>; cat {}; echo \<\/file\>' |