Skip to content

Instantly share code, notes, and snippets.

@xoseperez
xoseperez / mininal-rpi-grafana-dashboard
Created December 13, 2020 15:03
Minimal Raspberry Pi Grafana Dashboard
# Minimal Grafana Dashboard using a Raspberry Pi
# References:
# https://reelyactive.github.io/diy/pi-kiosk/
# https://blog.r0b.io/post/minimal-rpi-kiosk/
# https://grafana.com/blog/2019/05/02/grafana-tutorial-how-to-create-kiosks-to-display-dashboards-on-a-tv/
# -----------------------------------------------------
# Configuration (change to match your needs)
rubocop -a `git diff --name-only --cached | grep '\.rb'`
@blacktm
blacktm / install_ruby_rpi.sh
Last active November 28, 2024 20:35
A Bash script to install Ruby on the Raspberry Pi
#!/bin/bash
# --------------------------------------------------------------------------------------------
# Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian)
#
# Run from the web:
# bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
# --------------------------------------------------------------------------------------------
# Set the Ruby version you want to install
@matthewmccullough
matthewmccullough / gist:988077
Created May 24, 2011 03:02
Visualize Git Orphans via gitk and log
# Put this in your .gitconfig file under the alias section
orphank = !gitk --all `git reflog | cut -c1-7`&
# Then run it by typing 'git orphank' on the command line.
# A text version of the same is
orphanl = !git --pretty=oneline --abbrev-commit --graph --decorate `git reflog | cut -c1-7`