Skip to content

Instantly share code, notes, and snippets.

View 00_raspberrypi_livestream
raspberry pi livestream to YouTubeLive
/boot/run.sh
/boot/youtube.sh
/etc/rc.local
additional line to /etc/fstab
@tetsu-koba
tetsu-koba / 00_ioctl_golang
Created Jan 15, 2018
Golang ioctl sample
View 00_ioctl_golang
Golang ioctl sample
View 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_rust_cairo
Last active Sep 29, 2018
2D graphics animation tool using cairo rust binding and ffmpeg
View 00_rust_cairo
2D graphics animation tool using cairo rust binding and ffmpeg
@tetsu-koba
tetsu-koba / 00_dump_physical_memory_in_rust
Last active Sep 28, 2018
Dump pyhical memory in rust
View 00_dump_physical_memory_in_rust
Dump pyhical memory in rust.
@tetsu-koba
tetsu-koba / file1.txt
Last active Sep 25, 2018
Linuxでネットワークインタフェースの活動状況を調べる by Rust ref: https://qiita.com/tetsu_koba/items/919337fd4ac4f173e56a
View file1.txt
[dependencies]
schedule_recv = "0.1"
chrono = "0.4"
@tetsu-koba
tetsu-koba / file0.txt
Last active Aug 28, 2018
ubloxのGPSモジュールの測位間隔を変更するコマンドをgolangで作った ref: https://qiita.com/tetsu_koba/items/8f05a9b7887138a566e4
View file0.txt
$ ./gps_ublox
Usage: ./gps_ublox /dev/ttyACM0 rate
rate is in msec. (100 <= rate <= 65535)
@tetsu-koba
tetsu-koba / autoshutdown.sh
Last active Apr 17, 2018
GCE auto shutdown
View autoshutdown.sh
#!/bin/sh
do_shutdown () {
wall "Auto shutdown!"
sync
# Replace next line to your shut down command
gcloud compute instances stop instance-N --zone\=us-central1-a && shutdown -h now
}
warning () {
You can’t perform that action at this time.