Skip to content

Instantly share code, notes, and snippets.

View tomtwinkle's full-sized avatar
🔺

tom twinkle tomtwinkle

🔺
View GitHub Profile
@tomtwinkle
tomtwinkle / rsfsrom.sh
Last active February 7, 2021 09:33
Raspberry Pi rootfs ROM control function
# Raspberry Pi rootfs ROM control function
function rsfsrom() {
case $1 in
"status" )
raspi-config nonint get_overlay_now && echo "enable" || echo "disabled"
;;
"enable" )
sudo raspi-config nonint enable_overlayfs &&
echo -e "rootfs ROM is enable. system reboot required.\n> sudo systemctl reboot"
;;
@tomtwinkle
tomtwinkle / custom_markdown.tmpl
Created April 5, 2021 06:30
Generate Protocol Buffer Markdown with Validation
# Generate Protocol Buffer Markdown with Validation
<a name="top"></a>
## Services
{{- range .Files -}}
{{- $file := . -}}
{{- $srivicesLength := len $file.Services -}}
{{- if ne $srivicesLength 0 -}}
{{range $file.Services -}}