This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v4l2-ctl --get-edid | edid-decode | |
v4l2-ctl -D -d /dev/video0 --get-fmt-video | |
v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat='NV12' | |
# radxa 4k cam | |
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <re.h> | |
#include <baresip.h> | |
#define REALTIME 1 | |
static uint64_t next_value = 0; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#RELEASE += RelWithDebInfo | |
RELEASE += Debug | |
#FLAGS += -DHAVE_THREADS= -DCMAKE_C_FLAGS="-fanalyzer" | |
#FLAGS += -DCMAKE_C_FLAGS="-m32" | |
#FLAGS += -DCMAKE_C_FLAGS="-gdwarf-4 --coverage" -DHAVE_THREADS= | |
#FLAGS += -DCMAKE_C_FLAGS="-gdwarf-4" -DHAVE_THREADS= | |
#FLAGS += -DCMAKE_C_FLAGS="-gdwarf-4 -fsanitize=address" -DHAVE_THREADS= -DCMAKE_CXX_FLAGS="-fsanitize=address" | |
#FLAGS += -DCMAKE_C_FLAGS="-gdwarf-4 -fsanitize=thread" -DHAVE_THREADS= -DCMAKE_CXX_FLAGS="-fsanitize=thread" | |
#FLAGS += -DCMAKE_C_FLAGS="-Weverything -Wno-padded -Wno-extra-semi-stmtq -gdwarf-4 -fsanitize=undefined -fno-sanitize-recover" -DHAVE_THREADS= -DCMAKE_CXX_FLAGS="-fsanitize=undefined" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
idle=$1 | |
active=$2 | |
port=$3 | |
rounds=50 | |
echo "" > /tmp/bench.csv | |
redis-benchmark -c ${idle} -p ${port} -I & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <re.h> | |
#include <rem.h> | |
#include <stdint.h> | |
enum { | |
SILENCE_Q = 1024 * 1024, /* Quadratic sample value for silence */ | |
}; | |
static bool auframe_silence(struct auframe *af) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __format(arg) _Generic((arg), \ | |
char: "%c", \ | |
signed char: "%hhd", \ | |
unsigned char: "%hhu", \ | |
signed short: "%hd", \ | |
unsigned short: "%hu", \ | |
signed int: "%d", \ | |
unsigned int: "%u", \ | |
long int: "%ld", \ | |
unsigned long int: "%lu", \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m master main | |
git fetch origin | |
git branch -u origin/main main | |
git remote set-head origin -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I https://sip-tcploadbalancer04.live.sipgate.de:5061 | |
curl -I http://sip-tcploadbalancer04.live.sipgate.de:5060 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* compile with: | |
on linux: gcc -g stack_traces.c | |
on OS X: gcc -g -fno-pie stack_traces.c | |
on windows: gcc -g stack_traces.c -limagehlp | |
*/ | |
#include <signal.h> | |
#include <stdio.h> | |
#include <assert.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/net/posix/pif.c b/src/net/posix/pif.c | |
index 17e93abc..2fcf1113 100644 | |
--- a/src/net/posix/pif.c | |
+++ b/src/net/posix/pif.c | |
@@ -90,14 +90,67 @@ int net_if_getaddr4(const char *ifname, int af, struct sa *ip) | |
/** | |
- * Enumerate all network interfaces | |
+ * Enumerate all IPv6 network interfaces |
NewerOlder