Skip to content

Instantly share code, notes, and snippets.

@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 / go-gdb
Created January 26, 2019 07:49
go-gdb
#!/bin/sh
set -e
GOROOT=`go env GOROOT`
GO_GDB="${GO_GDB:-gdb}"
exec ${GO_GDB} \
--directory="$GOROOT" \
-iex "add-auto-load-safe-path $GOROOT/src/runtime/runtime-gdb.py" \
"$@"
@tetsu-koba
tetsu-koba / 00_dump_input_event_in_rust
Created October 2, 2018 06:23
Dump input event in rust
Dump input event in rust
@tetsu-koba
tetsu-koba / 00_rust_cairo
Last active January 26, 2024 13:16
2D graphics animation tool using cairo rust binding and ffmpeg
2D graphics animation tool using cairo rust binding and ffmpeg
@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 / file1.txt
Last active September 25, 2018 12:55
Linuxでネットワークインタフェースの活動状況を調べる by Rust ref: https://qiita.com/tetsu_koba/items/919337fd4ac4f173e56a
[dependencies]
schedule_recv = "0.1"
chrono = "0.4"
@tetsu-koba
tetsu-koba / file0.txt
Last active August 28, 2018 14:40
ubloxのGPSモジュールの測位間隔を変更するコマンドをgolangで作った ref: https://qiita.com/tetsu_koba/items/8f05a9b7887138a566e4
$ ./gps_ublox
Usage: ./gps_ublox /dev/ttyACM0 rate
rate is in msec. (100 <= rate <= 65535)
tinker board.
raspberry pi livestream to YouTubeLive
/boot/run.sh
/boot/youtube.sh
/etc/rc.local
additional line to /etc/fstab