Skip to content

Instantly share code, notes, and snippets.

@HorlogeSkynet
HorlogeSkynet / update_gitea.sh
Last active November 14, 2023 20:28
Gitea automatic updating script for GNU/Linux
#!/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>
@stiandre
stiandre / example.py
Created January 28, 2013 11:34
python-magic (libmagic python bindings)
#!/usr/bin/env python
# Install (ubuntu/debian):
# ------------------------
# apt-get install python-magic
import magic
ms = magic.open(magic.MAGIC_NONE)
ms.load()