Skip to content

Instantly share code, notes, and snippets.

@zougloub
zougloub / argh.cpp
Created June 5, 2018 03:38
When you have too many warnings in a piece of code and then track down a corruption issue...
#include <cstdio>
class C {
public:
C() {
printf("%s this=%p\n", __func__, this);
}
~C() {
printf("%s this=%p\n", __func__, this);
}
#!/usr/bin/env python
# -*- coding: utf-8 vi:noet
# Thermoco reader
import subprocess
class Thermoco(object):
def __init__(self, mac):
self._mac = mac
@zougloub
zougloub / dvr.py
Last active May 13, 2023 07:58
Tiny DVR for RTSP/H264 cameras
#!/usr/bin/env python
# -*- coding:utf-8 vi:noet
# RTSP/H264 simple camera DVR
__author__ = "Jérôme Carretero <cJ-tub@zougloub.eu>"
__license__ = "MIT"
import sys, io, os, re, time, datetime
import gi
#!/usr/bin/env python
# -*- coding: utf-8 vi:noet
# Dump a clear-text version of an SSH key from gpg-agent
__author__ = "Jérôme Carretero <cJ-tub@zougloub.eu>"
__licence__ = "MIT"
import sys, io, subprocess, re, ctypes
libgcrypt = ctypes.CDLL("libgcrypt.so")