This file contains hidden or 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 python3 | |
# | |
# BSD 3-Clause License | |
# Copyright (c) 2022 Fred W6BSD All rights reserved. | |
# | |
# This program reads Touchstone files (.s1p) coming from any good | |
# antenna analyzer or VNA. The the type of the data is limited to the | |
# format S,RI. | |
# | |
# You can go to https://0x9900.com/hustler-4btv-cleanup-tuning/ to see |
This file contains hidden or 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 python3 | |
# | |
# BSD 3-Clause License | |
# | |
# Copyright (c) 2022 Fred W6BSD | |
# All rights reserved. | |
# | |
# | |
import argparse |
This file contains hidden or 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 python3 | |
# | |
"""Backup a sqlite3 database into a zstandard compressed file""" | |
import logging | |
import os | |
import sqlite3 | |
import sys |
This file contains hidden or 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 | |
# | |
# (c) W6BSD Fred Cirera | |
# https://github.com/0x9900/ | |
# | |
import argparse | |
import logging | |
import os.path | |
import sys |
This file contains hidden or 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 | |
# | |
# (c) W6BSD Fred Cirera | |
# https://github.com/0x9900/ | |
# | |
# I use this program to generte the DMRId file for the YSF2DMR | |
# gateway. | |
# | |
import csv |
This file contains hidden or 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 | |
import argparse | |
import logging | |
import sys | |
import os | |
import subprocess | |
from ConfigParser import SafeConfigParser |
This file contains hidden or 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 | |
""" | |
Stem and leaf plotting. | |
http://en.wikipedia.org/wiki/Stem-and-leaf_display | |
$ leaf.py --help | |
usage: leaf.py [-h] [-s STEM_SIZE] filename | |
Stem-and-leaf display. |
This file contains hidden or 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
//fldigi macro definition file extended | |
// This file defines the macro structure(s) for the digital modem program, fldigi | |
// It also serves as a basis for any macros that are written by the user | |
// | |
// The top line of this file should always be the first line in every macro | |
// definition file (.mdf) for the fldigi program to recognize it as such. | |
// | |
// | |
// Macro # 1 |
This file contains hidden or 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
from mmap import ACCESS_READ, mmap | |
with open(filename, 'rb') as f, mmap(f.fileno(), 0, access=ACCESS_READ) as mm: | |
for byte in mm: # length is equal to the current file size | |
# Do stuff with byte |
This file contains hidden or 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 | |
# | |
# Dependency: | |
# pip install keyring | |
# | |
# Fred C. http://github.com/0x9900/ | |
# | |
""" | |
Generate a passworg base on the domain name of a website, your | |
userid on this website and a key. |