Skip to content

Instantly share code, notes, and snippets.

View douxxtech's full-sized avatar
🎃

Douxx douxxtech

🎃
View GitHub Profile
@douxxtech
douxxtech / ubx_decoder.py
Last active October 4, 2026 20:48
weird base64 -> u-blox ubx decoder
"""
See: https://douxx.blog/listening-to-switzerland-s-unencrypted-paging-network
Original:
+++=,*.AgISMAUktWILMWgAFAAAAIAZDgAA0GEAAAAAAAAAAAAAAAAA8gAAAE4Mig
,*.AgISMQUmVQBBAAAA7DQnAN70VQCq1DIAWxylAABp9gDujvIAoT8NAG4TDQBI<NUL><NUL>
,*.AgISMgUmfE4MADP7/wCceAIAJx4AAHklNwC8GCAAsDoNACun///U////sxPN<NUL><NUL>
+++=,*.AgITMAUktWILMWgAFQAAAIAZDgAC0GEAAAAAAAAAAAAAAAAA6wAAAE4MvA
,*.AgITMQUmAwCr/wAA7H8tAKQAAwCpmTIATIkYAACGAAC+5XMAoRUHADUbDQB5<NUL><NUL>
,*.AgITMgUmfE4MAAr8/wBFdgcAJ+X/AIQyVQD28ScAYrZxAGql//8EBwMAQPZk<NUL><NUL>
@douxxtech
douxxtech / ssh.fish
Created September 23, 2026 19:40
custom ssh background colors for the fish shell. Supports every xterm compatible terminal
# ~/.config/fish/functions/ssh.fish
function ssh
set -l cfg (command ssh -G $argv 2>/dev/null)
set -l host (string match -r '^hostname (.+)' $cfg)[2]
set -l port (string match -r '^port (.+)' $cfg)[2]
set -l bg
if test -n "$host"
set -l target $host
@douxxtech
douxxtech / shell.c
Last active May 21, 2026 09:37
A simple shell implementation in C. https://aka.dbo.one/shell
/*
A simple shell implementation in C.
https://aka.dbo.one/shell
https://gist.github.com/douxxtech/77169672f96cd8bd04565b90b730b862
*/
#include <glob.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
@douxxtech
douxxtech / traceroute.c
Created April 24, 2026 08:29
A simple traceroute implementation in C using raw ICMP sockets.
/*
A simple traceroute implementation in C using raw ICMP sockets.
Resolves hostnames, detects loops, and prints RTT for each hop.
Linux only | requires cap_net_raw or root | gcc -o traceroute traceroute.c
https://gist.github.com/douxxtech/3a1ffdf1acf6b3c1dcf81aad55a4bfe6
*/
#include <stdio.h>
#include <stdlib.h>
@douxxtech
douxxtech / rtltcpclient.py
Last active February 14, 2026 10:36
A *really* simple rtl-tcp client, that manages basic operations and configuration.
#!/usr/bin/env python3
"""
A *really* simple rtl-tcp client, that manages basic operations and configuration.
Gist: https://gist.github.com/douxxtech/793fe37022d9551df3114f6d72498b94
"""
import socket
import struct
import numpy as np
using nanoFramework.Networking;
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
namespace AntHarass
@douxxtech
douxxtech / requirements.txt
Last active November 16, 2025 22:51
A simple python script that broadcasts via fm radio SSTV images taken from a RTSP stream.
piwave==2.1.3
pysstv==0.5.7
pillow==9.5.0
ffmpeg-python==0.2.0
dlogger==1.0.2
@douxxtech
douxxtech / wificli.sh
Created November 16, 2025 16:26
A simple bash tool to manage wifi connections in a single command
#!/bin/bash
# made by github.com/douxxtech
# Note that this was originally made for a rpi 0 w running rpi os buster lite.
RED='\033[0;31m'
GRN='\033[0;32m'
YEL='\033[1;33m'
NC='\033[0m'
# My own Game Of Life
# Blog post: https://douxx.blog/?p=4-my-own-game-of-life
# Made by douxx.tech / github.com/douxx.tech
# side note: there are some hardcoded values, like
# the 'hardcore' triggers values around lines 190.
# INSTALL NOTES:
# run "curl -sSL https://setup.piwave.xyz/ | sudo bash" first to install the broadcast backend
# then install those python modules: pillow piwave requests pysstv numpy dlogger
@douxxtech
douxxtech / sstv-stats.md
Created October 12, 2025 14:10
A simple python script to broadcast SSTV stats via radio.

SSTV Stats

A simple python script to broadcast SSTV stats via radio.

This script uses piwave (2.0.7, not latest!), make sure to install it properly on a Raspberry Pi before using.
Other required modules can be installed via PIP

import time
import psutil
from PIL import Image, ImageDraw, ImageFont