This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 vi:noet | |
# Characterization test for SMR drives | |
import sys, os, subprocess, time, mmap | |
if __name__ == "__main__": | |
device = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 vi:noet | |
# Measure RAM usage by a process (and its children) on Linux | |
import sys, io, os, logging, subprocess, time | |
def ram_usage(pid, depth=0): | |
pss = 0 | |
logging.debug("%s Checking %d", " " * depth, pid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
class C { | |
public: | |
C() { | |
printf("%s this=%p\n", __func__, this); | |
} | |
~C() { | |
printf("%s this=%p\n", __func__, this); | |
} |
OlderNewer