View update_gitea.sh
#!/usr/bin/env bash | |
: " | |
1. Copy this script as '~/update_gitea.sh' | |
2. Now make it executable with 'chmod +x update_gitea.sh' | |
3. Set the constants below to fit your Gitea setup | |
" | |
VERSION="1.12.6" | |
ARCH="amd64" |
View example.py
#!/usr/bin/env python | |
# Install (ubuntu/debian): | |
# ------------------------ | |
# apt-get install python-magic | |
import magic | |
ms = magic.open(magic.MAGIC_NONE) | |
ms.load() |