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 / rename_files.py
Last active June 28, 2024 22:34
Rename images
#! /usr/bin/env python
# vim:fenc=utf-8
#
# Copyright © 2024 fred <github-fred@hidzz.com>
#
# Distributed under terms of the BSD 3-Clause license.
"""
Rename all the DXCC image with the new date format
"""
@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 May 15, 2024 01:50
.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 May 15, 2024 01:52
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 June 16, 2024 17:49
Graph SWR smith chart and return loss
#!/usr/bin/env python3
#
# BSD 3-Clause License
#
# Copyright (c) 2023-2024 Fred W6BSD
# All rights reserved.
#
#
import argparse
import logging
@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 July 17, 2024 15:26
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