Skip to content

Instantly share code, notes, and snippets.

@ajgappmark
ajgappmark / dump-vdso.py
Created June 11, 2020 21:45 — forked from kmcallister/dump-vdso.py
dump vdso
#!/usr/bin/env python
from ctypes import *
for ln in open('/proc/self/maps'):
if "[vdso]" in ln:
start, end = [int(x,16) for x in ln.split()[0].split('-')]
CDLL("libc.so.6").write(1, c_void_p(start), end-start)
break
@markusfisch
markusfisch / README.md
Last active July 23, 2024 19:42
Generate an annual commit report

Generate an annual commit report

Prints something like this:

In 2018 you made 2488 commits in 134 projects.
The average length of a commit message was 62 characters.

Commits per weekday
    Monday     334 ******************************************