Skip to content

Instantly share code, notes, and snippets.

View camielverdult's full-sized avatar

Camiel Verdult camielverdult

View GitHub Profile
@camielverdult
camielverdult / gist:c0399ab8dc43f9c868d6acc533f72e15
Created February 13, 2024 22:58
Fix missing automatic DHCP lease in new Debian install
In /etc/dhcp/dhclient.conf:
Add send dhcp-client-identifier = hardware;
See https://serverfault.com/questions/1102403/debian-11-no-longer-automatically-receiving-static-dhcp-ip-address-dhclient-mus/1106187#1106187?newreg=d620caeb3077480a858e0b61d369f21e
@camielverdult
camielverdult / create_ssd_pool.bash
Last active February 14, 2024 09:21
ZFS SSD Pool
# Run all of this as root
zpool create -f flash mirror /dev/sdb /dev/sdc
zfs create flash/docker
zfs set compression=on flash/docker
zfs set sync=standard flash/docker
zfs create flash/postgres
zfs set recordsize=8K flash/postgres
zfs set compression=lz4 flash/postgres
zfs set primarycache=all flash/postgres
if [[ $(whoami) == root ]]; then
curl -sSl https://raw.githubusercontent.com/virtualhere/script/main/install_server | bash
else
curl -sSl https://raw.githubusercontent.com/virtualhere/script/main/install_server | sudo bash
fi
This file has been truncated, but you can view the full file.
root@grass-desktop:/home/grass/test/Automatic-greenkeeper-assistant# gst-launch-1.0 -e nvarguscamerasrc num-buffers="20" sensor-id="0" ! "video/x-raw(memory:NVMM),width=4032,height=3040,framerate="2"/1" ! nvjpegenc ! multifilesink location=%03d_rpi_v3_imx477_cam$SENSOR_ID.jpeg > debug.txt
0:00:00.000236046 22673 0x5582724800 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.5
0:00:00.000342975 22673 0x5582724800 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/aarch64-linux-gnu
0:00:00.000393289 22673 0x5582724800 INFO GST_INIT gst.c:607:init_pre: Linux grass-desktop 4.9.201-tegra #1 SMP PREEMPT Sat May 8 01:13:10 UTC 2021 aarch64
0:00:00.000672252 22673 0x5582724800 DEBUG GST_MEMORY gstallocator.c:593:_priv_gst_allocator_initialize: memory alignment: 7
0:00:00.001076218 22673 0x5582724800 DEBUG GST_MEMORY gstallocator.c:569:gst_allocator_sysmem_init: init allocator 0x558272d840