Skip to content

Instantly share code, notes, and snippets.

View koppi's full-sized avatar
:octocat:

Jakob Flierl koppi

:octocat:
View GitHub Profile
@koppi
koppi / cwrx.c
Last active May 22, 2025 18:59
ncurses morse decoder for Linux.
/*
* cwrx.c - ncurses morse decoder for Linux
*
* Copyright (c) 2011 - 2025 Jakob Flierl <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
@koppi
koppi / ttt.c
Last active June 7, 2025 11:31
Tic tac toe in C.
/* Tic tac toe in C. */
#include <stdio.h>
#define P printf
enum { X = 'X', O = 'O', N = '\0', C = 'C' };
static char ck(char b[9]) {
int i, w[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 3, 6,
1, 4, 7, 2, 5, 8, 0, 4, 8, 2, 4, 6};
for (i = 0; i < 24; i += 3) {
if (b[w[i + 0]] == X && b[w[i + 1]] == X && b[w[i + 2]] == X) return X;
if (b[w[i + 0]] == O && b[w[i + 1]] == O && b[w[i + 2]] == O) return O;
@koppi
koppi / Makefile
Last active June 30, 2025 21:54
google contacts vcf 2 latex perl script
# Simple Makefile for building LaTeX PDF with xelatex
VCF = contacts.vcf
TEX = contacts.tex
PDF = contacts.pdf
PL = vcf2latex.pl
all: $(PDF)
$(TEX): $(VCF) $(PL)
@koppi
koppi / fil0r.pl
Created July 2, 2025 19:18
brute force via ssh
#!/usr/bin/perl -w
use strict;
use Net::SSH2;
my $alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
sub brute {
my $cmd = shift;
@koppi
koppi / dect-stack-linux-4.9.diff
Created July 12, 2025 11:27
DECT Linux patch by Newsy Paper - 2017-03-17
diff --git a/.config b/.config
index c7188ac..569621f 100644
--- a/.config
+++ b/.config
@@ -1601,6 +1601,13 @@ CONFIG_BT_MRVL=m
CONFIG_BT_MRVL_SDIO=m
CONFIG_BT_ATH3K=m
CONFIG_BT_WILINK=m
+CONFIG_DECT=m
+CONFIG_DECT_DEBUG=y