Skip to content

Instantly share code, notes, and snippets.

@jimparis
jimparis / punch.py
Created October 16, 2012 20:53 — forked from NicolasT/punch.py
Using FALLOC_FL_PUNCH_HOLE from Python to punch holes in files
#!/usr/bin/python
import ctypes
import ctypes.util
c_off_t = ctypes.c_int64
def make_fallocate():
libc_name = ctypes.util.find_library('c')
libc = ctypes.CDLL(libc_name)
This is LuaTeX, Version beta-0.76.0-2013052013 (rev 4627) (format=lualatex 2013.6.11) 3 JUL 2013 11:37
restricted \write18 enabled.
**track_missing_glyphs.tex
(./track_missing_glyphs.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 10 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)