Skip to content

Instantly share code, notes, and snippets.

View 0x9900's full-sized avatar
📻
Coding

Fred Cirera 0x9900

📻
Coding
View GitHub Profile
@0x9900
0x9900 / hrate.py
Last active April 20, 2024 15:45
iHealth heart rate monitor
#!/usr/bin/env python
#
# BSD 3-Clause License
#
# Copyright (c) 2023-2024 Fred W6BSD
# All rights reserved.
#
__doc__ = """
Read the CSV file from the iHealth heart rate monitor and generate a graph.
@0x9900
0x9900 / .vimrc
Last active January 6, 2024 02:52
.vimrc file
"
" First install vim-plug using the following command
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"
"
filetype plugin indent on
autocmd! bufwritepost .vimrc source ~/.vimrc
@0x9900
0x9900 / sendcard.py
Last active December 26, 2023 18:14
Automatically send QSL cards by calling eqsl
#!/usr/bin/env python
#
# BSD 3-Clause License
# Copyright (c) 2023 Fred W6BSD All rights reserved.
#
"""
`sendcard` is a companion program for e-qsl (https://pypi.org/project/e-qsl/)
This program monitors a directory for an ADIF file and then calls `eqsl`
with the file as an argument.
@0x9900
0x9900 / README.md
Last active December 24, 2023 00:25
Command line program to upload or update github gists.

GIST

Command line program to upload or change/update github gists. In order to work this program needs an authorization token.

Go to https://github.com/settings/tokens to create a token. The token can then be stored into the file ~/.local/gist_token.

Example

@0x9900
0x9900 / RigExpert.py
Last active March 12, 2024 20:42
Graph SWR smith chart and return loss
#!/usr/bin/env python3.10
#
#
import argparse
import os
import re
from datetime import datetime
import matplotlib.pyplot as plt
@0x9900
0x9900 / recover.py
Created June 18, 2023 22:28
Recover call from WSJT-X
#!/usr/bin/env python
import os
import sys
from collections import namedtuple
from datetime import datetime
from tqdm import tqdm
start_date = datetime(2023, 6, 15, 20, 55, 0)
@0x9900
0x9900 / smith_vswr.py
Last active October 18, 2023 16:03
Generate Smith chart and VSWR charts from .s1p files
#!/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
@0x9900
0x9900 / css7id.py
Last active November 23, 2022 02:20
CSS7ID command line search tool
#!/usr/bin/env python3
#
# BSD 3-Clause License
#
# Copyright (c) 2022 Fred W6BSD
# All rights reserved.
#
#
import argparse
@0x9900
0x9900 / gist:b3b9f0445a4d2e8c95509e4fdb9fdfb4
Created November 14, 2022 16:12
Back an SQLITE3 database
#!/usr/bin/env python3
#
"""Backup a sqlite3 database into a zstandard compressed file"""
import logging
import os
import sqlite3
import sys
@0x9900
0x9900 / cssmini.py
Created August 23, 2019 20:03
Compress CSS files
#!/usr/bin/env python
#
# (c) W6BSD Fred Cirera
# https://github.com/0x9900/
#
import argparse
import logging
import os.path
import sys