Skip to content

Instantly share code, notes, and snippets.

Zasady Projektowe Schematu

  1. Wielowymiarowość (Multi-faceted): Wektor musi przechwytywać ortogonalne aspekty połączenia – nie tylko opóźnienie, ale jego rozkład, charakterystykę częstotliwościową, niezawodność i kontekst systemowy.
  2. Interpretowalność (Interpretable): Każdy wymiar musi mieć jasne znaczenie fizyczne lub statystyczne, aby klastry wektorów i anomalie były zrozumiałe dla człowieka.
  3. Normalizacja (Normalizable): Wartości muszą być możliwe do znormalizowania (np. przez skalowanie min-max lub standaryzację Z-score), aby algorytm odległości (jak L2 w HNSW) działał poprawnie.
  4. Rozszerzalność (Extensible): Schemat powinien pozwalać na przyszłe dodawanie wymiarów bez unieważniania całej koncepcji.

Proponowany Schemat: Link Signature Vector (LSV), v1.0

@mkopa
mkopa / gitpack.sh
Created June 20, 2025 13:32
Git Repository to Single File Serializer
#!/bin/bash
# Check if exactly one argument is provided
if [ "$#" -ne 1 ]; then
echo "Error: Invalid number of arguments." >&2
echo "Usage: $0 <path_to_git_directory>" >&2
echo "Example: $0 ./my-project" >&2
exit 1
fi
@mkopa
mkopa / script.txt
Last active November 30, 2023 22:08
PPP over Serial Port
On client:
1.
add:
nameserver 8.8.8.8
nameserver 1.1.1.1
to /etc/resolv.conf
2.
@mkopa
mkopa / install.md
Created October 13, 2023 14:59 — forked from floehopper/install.md
Install rtl-sdr on Raspian on Raspberry Pi
[email protected]:~$ sudo dd bs=1m if=/Users/jamesmead/Downloads/2015-02-16-raspbian-wheezy.img of=/dev/disk2
pi@raspberrypi ~ $ sudo raspi-config
# Choose option 1 to "Expand Filesystem" - Ensures that all of the SD card storage is available to the OS
# Choose Finish & reboot

pi@raspberrypi ~ $ sudo apt-get update

Firefox write/read a lot on the disk. This can reduce the performance of other program.

In about:config

Reduce latency of session write

browser.sessionstore.interval to 600000 (1 hours)

This value is in ms.Default is 15000ms (every 15 seconde).

@mkopa
mkopa / Yaesu FC-30.org
Created September 11, 2022 11:41 — forked from ast/Yaesu FC-30.org
Reverse engineering the Yaesu FC-30 antenna tuner protocol

Reverse engineering the Yaesu FC-30

Notes about the Yaesu FC-30 tuner connected to the FT-891 radio. I have not been able to find any information online at all about the propriatry protocol used, so I’m compiling this from my observations.

The ultimate goal of this project is to connect an Icom AH-4 tuner to Yaesu radios.

Data shown is hex. Data in [brackets] are from tuner. Data without brackets are from radio.

Seems tuning is done in three steps:

@mkopa
mkopa / html-5-microphone-visualizer.markdown
Created April 24, 2022 13:31
HTML 5 Microphone Visualizer
@mkopa
mkopa / html-5-microphone-visualizer.markdown
Created April 21, 2022 13:28
HTML 5 Microphone Visualizer
@mkopa
mkopa / gist:5f93ac125cd7f925dcde9aae72dee50d
Created April 6, 2022 09:19
Get all supported MimeType types (copy and paste the code into your web browser console)
function getSupportedMimeTypes(media, types, codecs) {
const isSupported = MediaRecorder.isTypeSupported;
const supported = [];
types.forEach((type) => {
const mimeType = `${media}/${type}`;
codecs.forEach((codec) => [
`${mimeType};codecs=${codec}`,
`${mimeType};codecs:${codec}`,
`${mimeType};codecs=${codec.toUpperCase()}`,
`${mimeType};codecs:${codec.toUpperCase()}`
[Basic]
LBP=41
LC=25
ALC0=1
ALC1=52
ALC2=58
ALC3=64
ALC4=70
ALC5=76
ALC6=82