Skip to content

Instantly share code, notes, and snippets.

View remittor's full-sized avatar
🔆

Oleg S. remittor

🔆
View GitHub Profile
@remittor
remittor / awgcfg.py
Last active December 24, 2024 15:32
# SPDX-License-Identifier: MIT
# Author: remittor <[email protected]>
# Created: 2024
import os
import sys
import glob
import subprocess
import optparse
import random
import os
import sys
import zipfile
import json
import re
import datetime
import optparse
parser = optparse.OptionParser("usage: %prog [options]", add_help_option=False)
parser.add_option("-f", "--file", dest="filename", default='', type="string")
import os
import sys
import asyncio
import io
import optparse
import logging
import pprint
try:
from ujson import dumps as jsonify
@remittor
remittor / pl_test.py
Last active March 22, 2023 10:34
pl_test.py
import sys
import io
import time
import datetime
import socket
import asyncore
import struct
import optparse
parser = optparse.OptionParser("usage: %prog [options]", add_help_option=False)
@remittor
remittor / server.py
Last active August 5, 2023 15:25
WSGI test server
import os
import sys
import io
import optparse
#from email.utils import formatdate
try:
from ujson import dumps as jsonify
except:
from json import dumps as jsonify
import sys
import optparse
import flask
parser = optparse.OptionParser("usage: %prog [options]", add_help_option=False)
parser.add_option("-h", "--host", dest="host", default='', type="string")
parser.add_option("-p", "--port", dest="port", default=5000, type="int")
parser.add_option("-g", "--gateway", dest="gateway", default="", type="string")
parser.add_option("-f", "--file", dest="file", default="", type="string")
parser.add_option("-b", "--binary", dest="binary", action="store_true", default=False)
---------------------------- KMSG ----------------------------
<6>[ 0.000000, 0] Booting Linux on physical CPU 0
<6>[ 0.000000, 0] Initializing cgroup subsys cpu
<5>[ 0.000000, 0] Linux version 3.4.0-JSR-Kernel+ ([email protected]) (gcc version 4.9.4 20160401 (optimized) (UBERTC-4.9.4) ) #23 SMP PREEMPT Tue Jul 5 19:35:13 MSK 2016
<7>[ 0.000000, 0] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
<7>[ 0.000000, 0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
<6>[ 0.000000, 0] Machine: Qualcomm MSM 8x26 / MSM 8x28 (Flattened Device Tree), model: Qualcomm MSM 8226v2 QRD
<6>[ 0.000000, 0] debug: ignoring loglevel setting.