Skip to content

Instantly share code, notes, and snippets.

@T-X
T-X / anmp-cmake-log.txt
Last active June 4, 2025 05:34
ANMP build errors
$ cmake ..
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI inf ALSA include dir : /usr/include /usr/include
# /etc/systemd/network/20-eth0-pim-router-id.network
[Match]
Name=eth0
[Network]
Address=2001:67c:2d50::2/128
Frame 24: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)
-> 1st fragment
Frame 26: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)
-> 2nd fragment
Frame 28: 1166 bytes on wire (9328 bits), 1166 bytes captured (9328 bits)
-> 3rd/final fragment
Ethernet II, Src: ... (...), Dst: IPv4mcast_fb (01:00:5e:00:00:fb)
Internet Protocol Version 4, Src: 10.130.27.220, Dst: 224.0.0.251
User Datagram Protocol, Src Port: 38395, Dst Port: 5353
Multicast Domain Name System (response)
{
debug
email "[email protected]"
acme_ca "https://acme-v02.api.letsencrypt.org/directory"
servers {
metrics
}
}
@T-X
T-X / pi4-batman-adv-dmesg.txt
Created July 24, 2024 12:20
pi4-batman-adv-dmesg.txt
root@jls-pi4:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 5.15.158 (root@runner-jkqbqi92c-project-402-concurrent-1) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23899+7-3001d3c5d4) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Wed Jan 17 23:52:09 2024
[ 0.000000] random: crng init done
[ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.1
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000002ac00000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff]
[ 0.000000] DMA32 [mem 0x0000000040000000-0x000000007fffffff]
@T-X
T-X / test-jhash.c
Last active July 22, 2024 18:22
batman-adv DAT DHT jenkins test for 10.130.0.0/16
#include <stdio.h>
#include <netinet/in.h>
#include <linux/if_ether.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
//typedef u16 batadv_dat_addr_t;
typedef uint16_t batadv_dat_addr_t;
@T-X
T-X / 01-systemctl-status-user-slice.txt
Created July 20, 2024 17:08
systemd v256 freeze issue
$ sudo systemctl status user.slice
● user.slice - User and Session Slice
Loaded: loaded (/usr/lib/systemd/system/user.slice; static)
Active: active (freezing) since Tue 2024-07-16 15:12:45 CEST; 2 days ago
Invocation: d28845b481cc4407a98206035d2ed4e8
Docs: man:systemd.special(7)
Tasks: 449
Memory: 22.4G (peak: 26.1G)
CPU: 3d 4h 8min 36.112s
CGroup: /user.slice
#!/bin/sh
[ -z "$FRAMESIZES" ] && FRAMESIZES="10 20 60"
[ -z "$EXPECTED_LOSSES" ] && EXPECTED_LOSSES="0 15 30 50"
[ -z "$BITRATE" ] && BITRATE="24 32 64 96 128 196"
[ -z "$LOSSES" ] && LOSSES="0 10 20 30 40 50 70"
flac_to_opus() {
local fs="$1"
local loss="$2"
/*
* Compile with:
* $ gcc test.c -o /tmp/test -g -O2
*
* $ gcc --version
* gcc (Debian 13.2.0-24) 13.2.0
*
* Expected output:
*
* $ /tmp/test
/*
* Compile with:
* $ gcc test.c -o /tmp/test -g -O2
*
* $ gcc --version
* gcc (Debian 13.2.0-24) 13.2.0
*
* Output:
*
* $ /tmp/test