Skip to content

Instantly share code, notes, and snippets.

/*
check out whether telephony speech voice data packets of 32 ms period length
get scrambled when send out via UDP.
When the packages are send in realtime that is with a delay of 32 ms between each send
operation, this was not the case on the used test system Ryzen 1700X running Linux kernel
4.19.5. Otherwise we observe in fact a change of the send order.
12/2019/OL
*/
@linneman
linneman / enum_stringify_example.c
Created July 14, 2016 08:23
how to stringify an enumeration type in C
#include <stdio.h>
#include <stdio.h>
#define ENUM_BODY(name, value) \
name value,
#define AS_STRING_CASE(name, value) \
case name: return #name;
#define DEFINE_ENUM(name, list) \
/*
sine wave generator using IIR filter
taken from: http://home.anadolu.edu.tr/~sgorgulu/dsphw/Lab2/Lab2.pdf
2016 OL
*/
#include <stdio.h>
@linneman
linneman / convert.sh
Created February 23, 2016 20:21
awk script to further convert nv-item update script output from ORCT to whatever output format
#!/usr/bin/env awk -f
# awk script to further convert nv-item update script output from ORCT
# to whatever output format. In the given example each invocation of
# the nvimg application is quoted in order to further process the
# result code.
#
# invocation: ./convert.sh <update-script-file>
BEGIN { RS = ""; FS = "\n" }
{

Keybase proof

I hereby claim:

  • I am linneman on github.
  • I am linneman (https://keybase.io/linneman) on keybase.
  • I have a public key whose fingerprint is 199F CBB8 8DD9 DD03 1797 7564 F8B4 1187 56F7 5671

To claim this, I am signing this object:

@linneman
linneman / streamer.c
Created September 25, 2015 20:16
signal processing architecture in C
/*
* design pattern of descriptor based signal processing framework
* based on ideas of mediastreamer2 library
* 2015 by OL
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@linneman
linneman / tests.clj
Created April 15, 2012 09:49
generate test database entries by means of lazy sequences in clojure
(def names
(let [first-names ["Paul" "Lisa" "Andreas" "Paula"
"Gert" "Gerda" "Patrick" "Sabine"
"Gustav" "Monika" "Olaf" "Andrea"
"Ottmar" "Patricia" "Heiner" "Anna"
"Sebastian" "Gudrun" "Christoph" "Silke"
"Max" "Sandy"]
second-names ["Mueller" "Schmidt" "Bauer" "Schuhmacher"
"Stein" "Pfennig" "Baecker" "Schuster"
"Bleichert" "Schulz" "Ludwig" "Mai"
solaris:Utilities ol$ cd build
-bash: cd: build: No such file or directory
solaris:Utilities ol$ ls
build_gpgme dist sources
solaris:Utilities ol$ cd ../build
solaris:build ol$ ls
MacGPGME.build Release dist sources
solaris:build ol$ cd MacGPGME.build/
solaris:MacGPGME.build ol$ ls
Release
solaris:GPGMail ol$ make
xcodebuild -project GPGMail.xcodeproj -target GPGMail -configuration Release build
2010-06-21 22:15:59.556 xcodebuild[63289:807] Unable to load platform at path /Developer/Platforms/iPhoneOS.platform
=== BUILD AGGREGATE TARGET Build gpgme OF PROJECT MacGPGME WITH CONFIGURATION Release ===
Check dependencies
PhaseScriptExecution "Run Script" "build/MacGPGME.build/Release/Build gpgme.build/Script-1B45A57E11CCA13000ED4663.sh"
cd /Users/ol/tmp/GPGMail/GPGMail/Dependencies/MacGPGME
setenv ACTION build
setenv ALTERNATE_GROUP ol
solaris:lib ol$ ls
ImageMagick-6.3.3 libfuse.2.dylib libiconv.2.4.0.dylib
ImageMagick-6.4.1 libfuse.dylib libiconv.2.dylib
charset.alias libfuse.la libiconv.dylib
gettext libfuse_ino64.2.7.3.dylib libiconv.la
libBox2D.2.1.0.dylib libfuse_ino64.2.dylib libintl.3.4.3.dylib
libBox2D.a libfuse_ino64.dylib libintl.3.dylib
libBox2D.dylib libfuse_ino64.la libintl.8.0.2.dylib
libMagick++.10.0.7.dylib libgdraw.1.0.14.dylib libintl.8.dylib
libMagick++.10.dylib libgdraw.1.dylib libintl.a