Skip to content

Instantly share code, notes, and snippets.

View brechtm's full-sized avatar

Brecht Machiels brechtm

View GitHub Profile
@brechtm
brechtm / rinohtype_cla.md
Last active July 11, 2016 07:38
rinohtype CLA - based on Harmony (HA-CLA-I-ANY) Version 1.0

Rinohtype Individual Contributor License Agreement

Thank you for your interest in contributing to rinohtype ("We" or "Us").

This contributor agreement ("Agreement") documents the rights granted by contributors to Us. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

"You" means the individual who Submits a Contribution to Us.

@brechtm
brechtm / diffpdf.sh
Last active September 4, 2024 18:52
Page-by-page PDF diff tool
#!/bin/bash
# usage: diffpdf.sh file_1.pdf file_2.pdf
# requirements:
# - ImageMagick
# - Poppler's pdftoppm and pdfinfo tools (works with 0.18.4 and 0.41.0,
# fails with 0.42.0)
# (could be replaced with Ghostscript if speed is
# not important - see commented commands below)
@brechtm
brechtm / PDF-Testing.md
Last active March 28, 2024 14:09 — forked from tiarno/PDF-Testing.md
PDF Checking

PDF Testing Gist

These two files, pdf_linkchecker.py and pdf_fontchecker.py are code examples to go along with a blog article: http://reachtim.com/articles/PDF-Testing.html

See the article for details on how to test your PDFs for broken internal and external links and for unembedded fonts.

@brechtm
brechtm / argenta_csv_to_ofx.py
Created April 13, 2014 20:00
Converts a Argenta bank statements (CSV) to Open Financial Exchange (OFX) format, for import into manager.io
#!/bin/env python
import argparse
import csv
from xml.etree import ElementTree as ET
OFX_DECLARATION = [('OFXHEADER', 200),
('VERSION', 211),
@brechtm
brechtm / exporteps.py
Last active November 21, 2022 23:55
Libre/OpenOffice Draw script to bulk export figures
# Libre/OpenOffice: Export selected or all figures as EPS
# 2010 Brecht Machiels
#
# Usage:
# - drop script in user scripts folder
# Max OSX: $HOME/Library/Application Support/LibreOffice/4/user/scripts/python/
# (Arch) Linux: $HOME/.config/libreoffice/4/user/Scripts/python/
# other Linux: $HOME/.libreoffice/4/user/Scripts/python/
# Windows: C:\Document and Settings\<username>\Application Data\libreoffice\4\user\Scripts\python
# - start Draw and draw some figures