Skip to content

Instantly share code, notes, and snippets.

@thomasfaingnaert
thomasfaingnaert / onedrive-linux.md
Created March 24, 2021 16:52
Configure OneDrive in Linux
# Change this to the name of your account
ACCOUNT_NAME=Personal

###

CONTAINER_NAME="$(echo "onedrive-${ACCOUNT_NAME}" | tr '[:upper:]' '[:lower:]')"
VOLUME_NAME="${CONTAINER_NAME}-conf"
ONEDRIVE_DATA_DIR="${HOME}/OneDrive${ACCOUNT_NAME}"
@thomasfaingnaert
thomasfaingnaert / fancy-git-diff.py
Last active June 3, 2022 02:56
Fancy git-diff output with syntax highlighting
#!/usr/bin/env python3
# Inspired by: https://gist.github.com/oprypin/9668969
import argparse
import pygments
import pygments.formatters
import pygments.lexers
import re
import sys
@thomasfaingnaert
thomasfaingnaert / cmake-git-version.md
Created April 6, 2022 09:00
Using git version in cmake

Using git version in cmake

include/version.h.in

#define VERSION_STRING "@VERSION_STRING@"

cmake/generate_version.cmake