Skip to content

Instantly share code, notes, and snippets.

# based on https://github.com/amber-sixel/PythonCatPrinter.git
# can be used as a raw postscript printer (a4, one page only) on port 9100
#
# status : curl --location --request GET 'localhost:5000'
#
# curl --location --request POST 'localhost:5000' \
# --form 'image=@"/image.jpg"' \ #optional
# --form 'text="hello world"' \ #optional
# --form 'size="48"' \ #optional
build https://github.com/pvachon/tsl-sdr to get
depager and multifm
#test.json
{
"device" : {
"type" : "rtlsdr",
"deviceIndex" : 0,
"dBGainLNA" : 42
},
@xssfox
xssfox / dns.py
Created March 14, 2020 04:58
(python2)
#!/usr/bin/env python
# coding=utf-8
import argparse
import datetime
import sys
import time
import threading
import traceback
import socketserver