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 / genpass.py
Created July 12, 2026 16:54
Yet another password generator
#!/usr/bin/env python3
# vim:fenc=utf-8
#
# Copyright © 2026 fred <github-fred@hidzz.com>
#
# Distributed under terms of the BSD 3-Clause license.
import os
import secrets
import sys
@0x9900
0x9900 / purge_cache.py
Created July 11, 2026 16:00
Purge cloudflare cache
#! /usr/bin/env python
# vim:fenc=utf-8
#
# Copyright (C) 2026 fred <github-fred@hidzz.com>
#
# Distributed under terms of the BSD 3-Clause license.
import argparse
import logging
from dataclasses import dataclass
@0x9900
0x9900 / image_extend.py
Created June 21, 2026 18:08
Pelican extention for image
#! /usr/bin/env python
# vim:fenc=utf-8
#
# Copyright © 2024-2026 fred <github-fred@hidzz.com>
#
# Distributed under terms of the BSD 3-Clause license.
"""
Usage example:
@0x9900
0x9900 / purge.py
Last active February 26, 2025 15:35
Purge QSOs
#!/usr/bin/env python
#
# BSD 3-Clause License
#
# Copyright (c) 2023, Fred W6BSD
# All rights reserved.
#
import logging
import os
@0x9900
0x9900 / ft8ctrl.yaml
Created November 21, 2024 01:36
ft8ctl linux test
---
#
# WSJT-X FT8 Automation
# /!\ The content of this file is case sensitive
#
ft8ctrl:
my_call: W6BSD
my_grid: CM87vl
db_name: ~/.ft8ctl/ft8ctl.sql
@0x9900
0x9900 / sailmap.py
Last active September 5, 2024 15:45
Map my gps data
#! /usr/bin/env python
# vim:fenc=utf-8
#
# Copyright © 2024 fred <github-fred@hidzz.com>
#
# Distributed under terms of the BSD 3-Clause license.
"""
Send my GPS traces on a map.
Examples: https://bsdworld.org/misc/
@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.