Skip to content

Instantly share code, notes, and snippets.

@HorlogeSkynet
HorlogeSkynet / update_gitea.sh
Last active Nov 17, 2020
Gitea automatic update script from binary for Linux
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"
@stiandre
stiandre / example.py
Created Jan 28, 2013
python-magic (libmagic python bindings)
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()
You can’t perform that action at this time.