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
#!/usr/bin/env bash | |
# | |
# @HorlogeSkynet's Gitea automatic updating script for GNU/Linux. | |
# | |
# Version : v3.0.2 | |
# URL : <https://gist.github.com/HorlogeSkynet/d676b9204869842933169dbe35ed8650> | |
# | |
# /!\ A proper Gitea server managed by a systemd service is required /!\ | |
# --> Maintainer one : <https://gist.github.com/HorlogeSkynet/81a3a4ff2ea342dc3a77dc038cbc0e35> |
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
#!/usr/bin/env python | |
# Install (ubuntu/debian): | |
# ------------------------ | |
# apt-get install python-magic | |
import magic | |
ms = magic.open(magic.MAGIC_NONE) | |
ms.load() |