This repo consists of some of my daily used script, including .py
and .sh
for personal use.
Usage:
python copy_boilerplate.py "<DIRNAME>"
This script is used to copy LaTeX boilerplate files into a new directory, unlike javascript, python, etc, for LaTeX writing, there is no scaffolding tools to use. In order to avoiding manually <C-c>
and <C-v>
every directory and rename endlessly, I write this small script.
This script still lacks many of the key features, I will add these later. PR
is always welcome.
ToDo:
- add
.gitignore
-like feature, avoid copying.DS_STORE
and other meaningless files or dirs. - add progress bar to show progress when copying large files. (A potential tool:
rich.progress
)
Manually keep every packages up-to-date is quiet annoying, that's the main reason I write this script.
Usage:
sudo sh upgrade.sh
You can also paste this script to your apple shortcuts, but it doesn't work on my machine. I use a soft symbolic link as shortcut, and manually run the command.
ln -s <DOWNLOAD_PATH> <TARGET_FILE_NAME>
This will upgrade your packages installed by
- Homebrew
- pip
- npm
- yarn
- pnpm
- vcpkg
- Packer (for NeoVim plugins)
and sync your dotfiles under ~/.config
via git.
Also use mackup to backup your mac.
Most of my code is under MIT License, therefore, feel free to use or distribute them.