Skip to content

Instantly share code, notes, and snippets.

View mchwalisz's full-sized avatar

Mikołaj Chwalisz mchwalisz

View GitHub Profile
@mchwalisz
mchwalisz / git-latexdiff.PKGBUILD
Created July 28, 2017 07:39 — forked from sebastianst/git-latexdiff.PKGBUILD
PKGBUILD of git-latexdiff AUR Package
# Maintainer: Benjamin Chrétien <chretien at lirmm dot fr>
# Contributor: Sebastian Stammler <base64 -d<<<c2ViQGhkZG4uc3BhY2UK>
pkgname=git-latexdiff
pkgver=1.2.0
pkgrel=1
pkgdesc="Simple but very convenient wrapper around Git and latexdiff"
arch=('any')
url="https://gitlab.com/git-latexdiff/git-latexdiff"
license=('BSD')
depends=('texlive-core' 'texlive-bin' 'git')
@mchwalisz
mchwalisz / setup.py
Created August 1, 2017 13:05 — forked from nloadholtes/setup.py
An example of using the git hash/tag as a version number
from setuptools import setup, find_packages
import subprocess
def _get_version_hash():
"""Talk to git and find out the tag/hash of our latest commit"""
try:
p = subprocess.Popen(["git", "describe",
"--tags", "--dirty", "--always"],
stdout=subprocess.PIPE)
except EnvironmentError: