129 karma · joined December 4, 2019
howto:
https://jamesachambers.com/raspberry-pi-4-usb-boot-config-gu...
log_bash_persistent_history()
{
[[
$(history 1) =~ ^\ *[0-9]+\ +([^\ ]+\ [^\ ]+)\ +(.*)$
]]
local date_part="${BASH_REMATCH[1]}"
local command_part="${BASH_REMATCH[2]}"
if [ "$command_part" != "$PERSISTENT_HISTORY_LAST" ]
then
echo $date_part "|" "$command_part" >> ~/.persistent_history
export PERSISTENT_HISTORY_LAST="$command_part"
fi
}
run_on_prompt_command()
{
log_bash_persistent_history
}
alias phgrep='cat ~/.persistent_history|grep --color'
I like the idea of a hub, as I do a lot of work inside docker containers and vms -- so this could be tailored to help me collect all my history.You can also request it be destroyed:
https://www.health.mil/Military-Health-Topics/Research-and-I...
It was once explained to me that writing to a HDD is like painting. Where new data can just be painted over the top of the old discarded data. While writing to an SSD is like writing on a chalk board where the old data has to be removed before you can write over it.
https://github.com/TeraTech/MMM-WiFiPassword
weather:
https://github.com/jclarke0000/MMM-DarkSkyForecast
Sits on the kitchen counter. Guest password is rotated and the display is auto-updated.
The raspberrypi is running MagicMirror, but I just have it outputting to a small display (7"). Looks great.
I use a Ubiquiti wifi AP and it has an API to change the guest password.