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
| Host github.com | |
| HostName github.com | |
| User git | |
| IdentityFile ~/.ssh/secret.key |
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
| #!/bin/bash | |
| set -ex | |
| # Usage: ./build-python.sh [version] [install-dir] | |
| # Example1: ./build-python.sh 3.12.9 | |
| # Example2: mkdir -p ~/bin/python-original && ./build-python.sh 3.12.9 ~/bin/python-original | |
| # Some modules require extra lib: libffi, libbz2, liblzma | |
| py_version=${1:-3.12.9} | |
| base_dir=$(realpath ${2:-$HOME/bin/python-original}) |
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
| #!/bin/bash | |
| set -ex | |
| # Python and ffmpeg are required, make sure Python 3.10+ is installed | |
| # Usage: ./dl-vid.sh <video_url> | |
| ensure_lib() { | |
| if [ -x "$(command -v apt)" ]; then | |
| if dpkg -s $1 &> /dev/null; then | |
| echo "$1 is already installed" |
OlderNewer