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)

This is a test link

asdf
====
asdf
----
@jimparis
jimparis / time.c
Created January 20, 2016 23:29
Time FTDI bitbang output to figure out actual bitrate
/* $ cc -lftdi time.c -o time
$ ./time 9600
Desired bitrate: 9600
Writing data..
100000 bits written in 10.368 seconds = 9645.0 bits per second
$ ./time 76000
Desired bitrate: 76000
Writing data..
100000 bits written in 1.30888 seconds = 76401.0 bits per second
$ ./time 1000000
commit 9bc389963dc95edc679b31d32c285f2dd6aab619 (HEAD -> jim-rtt)
Author: Jim Paris <[email protected]>
Date: Thu Nov 15 12:30:30 2018 -0500
target/arm_adi_v5: power off chip debug hardware on shutdown
Change-Id: I759442371439ec54597f75964115776bfaa67949
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 4dc2594cf521..52fe7c9c6311 100644
commit 9bc389963dc95edc679b31d32c285f2dd6aab619 (HEAD -> jim-rtt)
Author: Jim Paris <[email protected]>
Date: Thu Nov 15 12:30:30 2018 -0500
target/arm_adi_v5: power off chip debug hardware on shutdown
Change-Id: I759442371439ec54597f75964115776bfaa67949
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 4dc2594cf521..52fe7c9c6311 100644
commit 2cce0bf617358deb2450fee87ab01a8cef7274ea
Author: Jim Paris <[email protected]>
Date: Mon May 6 23:07:13 2019 -0400
Support referencing a specific ADC input in DT properties
This lets us do e.g.:
foo {
compatible = "bar";