Skip to content

Instantly share code, notes, and snippets.

View 7ERr0r's full-sized avatar

7ERr0r

View GitHub Profile
@TF3RDL
TF3RDL / Sb-sDFT.js
Last active January 15, 2024 07:45
Variable-Q sliding DFT algorithm
/**
* Single file implementation of variable-Q sliding DFT (VQ-sDFT)
*
* The frequency bands data is formatted like:
* {lo: lowerBound,
* ctr: center,
* hi: higherBound}
*
* where lo and hi are used for calculating the necessary bandwidth for variable-Q/constant-Q transform spectrum analysis and ctr for center frequency. This is generated using functions like generateFreqBands()
*
@markusfisch
markusfisch / README.md
Last active July 22, 2024 00:35
Force any binary to use a specific network interface in Linux

setnif

Force any binary to use a specific network interface.

Requires gcc and bash. Linux only.

Usage:

$ sudo ./setnif.sh eth1 curl www.google.com