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 / 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 / .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 / .tmux.conf
Last active December 28, 2023 01:06
tmux configuration
# Reload key
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
set-option -g default-command "reattach-to-user-namespace -l zsh"
set -g display-time 5000
set -g display-panes-time 5000
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
@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 / 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 / macros.mdf
Last active September 12, 2023 17:03
fldigi macros
//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
@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 / .backup-exclude.dat
Last active December 3, 2022 03:13
Rsync exclude file.
+ /Library/
+ /Library/Accounts/
+ /Library/Application Support/
+ /Library/Application Support/AddressBook/
+ /Library/Calendars/
+ /Library/Dictionaries/
+ /Library/Fonts/
+ /Library/HomeKit/
+ /Library/Keychains/
+ /Library/Mail/