Skip to content

Instantly share code, notes, and snippets.

@tetsu-koba
tetsu-koba / 00_tcp_example
Last active December 19, 2022 12:43
TCP socket example of Zig language
TCP connection examples in Zig language
@tetsu-koba
tetsu-koba / epoll_example.c
Created December 17, 2022 02:45
epoll and signalfd example in C
#include <stdio.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <sys/signalfd.h>
#define MAX_EVENTS 5
#define READ_BUFSIZE (64*1024)
@tetsu-koba
tetsu-koba / prop_sc02c.txt
Created June 23, 2011 09:28
getprop output of GALAXY S II SC-02C
[ro.secure]: [1]
[ro.allow.mock.location]: [0]
[ro.debuggable]: [0]
[persist.service.adb.enable]: [1]
[ro.factorytest]: [0]
[ro.serialno]: []
[ro.bootmode]: [unknown]
[ro.baseband]: [unknown]
[ro.carrier]: [unknown]
[ro.bootloader]: [unknown]
@tetsu-koba
tetsu-koba / 00_uio_golang
Last active July 12, 2022 22:57
Using UIO from golang
Using UIO from golang
Rec and send SRT with retry
@tetsu-koba
tetsu-koba / 00_srt_server.txt
Last active June 15, 2022 07:04
SRT server
This is sample for srt server
@tetsu-koba
tetsu-koba / rec_send_srt.sh
Created June 14, 2022 11:59
rec and send SRT by ffmpeg
#!/bin/sh -xue
HOST_IP=xx.yy.zz.ww
PORT=7001
RECDIR=$PWD/rec
SEGMENT_TIME=3600
FIFO=$PWD/.fifo
rm -f $FIFO
mkfifo $FIFO
@tetsu-koba
tetsu-koba / 00_dump_physical_memory_in_rust
Last active May 23, 2022 07:44
Dump pyhical memory in rust
Dump pyhical memory in rust.
@tetsu-koba
tetsu-koba / prop_x86.txt
Created July 9, 2011 04:24
getprop output of emulator-x86
[ro.secure]: [0]
[ro.allow.mock.location]: [1]
[ro.debuggable]: [1]
[persist.service.adb.enable]: [1]
[ro.kernel.qemu]: [1]
[ro.kernel.console]: [ttyS0]
[ro.kernel.android.qemud]: [ttyS1]
[ro.kernel.androidboot.hardware]: [goldfish]
[ro.kernel.clocksource]: [pit]
[ro.kernel.android.checkjni]: [1]
@tetsu-koba
tetsu-koba / dmesg_sc02c.txt
Created June 23, 2011 09:25
Kernel boot log of GALAXY S II SC-02C
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 2.6.35.7-SC02COMKF2-CL257138 (se.infra@SEP-51) (gcc version 4.4.0 (GCC) ) #2 SMP PREEMPT Thu Jun 2 01:03:34 KST 2011
<4>[ 0.000000] CPU: ARMv7 Processor [412fc091] revision 1 (ARMv7), cr=10c53c7f
<4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
<4>[ 0.000000] Machine: SMDKC210
<4>[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
<7>[ 0.000000] On node 0 totalpages: 262144
<7>[ 0.000000] Normal zone: 1248 pages used for memmap
<7>[ 0.000000] Normal zone: 0 pages reserved
<7>[ 0.000000] Normal zone: 158496 pages, LIFO batch:31