Skip to content

Instantly share code, notes, and snippets.

# RPi firmware details
alias fw='/opt/vc/bin/vcgencmd version'
alias bbfw='/usr/bin/vcgencmd version'
# Kodi (on a BusyBox-based OS, such as LibreELEC)
alias kls="cat /storage/.kodi/temp/kodi.log | grep " # Kodi log search
alias klw="tail -f /storage/.kodi/temp/kodi.log " # Kodi log watch
alias klt="tail -200 /storage/.kodi/temp/kodi.log | more " # Kodi log tail

This gist is a simple no-brainer description of the 3 ways (actually 2.5) the Web handles events.

<tag onclick />

The declarative inline HTML event listener is mostly an indirection of DOM Level 0 events, meaning this simply uses the equivalent of tag.onclick = listener behind the scene.

Example

click me