This is a TL;DR for: https://linuxopsys.com/topics/update-firmware-on-ubuntu-using-fwupd
# Install
su -
apt update
apt install fwupd
# Display supported devices
fwupdmgr get-devices
r""" | |
dump-all-variables.py | |
-John Taylor | |
2024-05-16 | |
Dumps both global and local Python variables and their values | |
""" | |
# needed to emit global values | |
import inspect |
#!/bin/bash | |
# create a number of objects in the given S3 bucket | |
set -euo pipefail | |
COUNT=25 | |
START=0 | |
SOURCE=object | |
DEST="s3://test-bucket-${RANDOM}-${RANDOM}-${RANDOM}" |
This is a TL;DR for: https://linuxopsys.com/topics/update-firmware-on-ubuntu-using-fwupd
# Install
su -
apt update
apt install fwupd
# Display supported devices
fwupdmgr get-devices
cal -3
is very useful#!/bin/bash | |
IMAGE=pihole | |
LENGTH=12 | |
LOG="${0%.*}.log" | |
CONTAINER=$(docker ps --format "{{.ID}}" --filter name=${IMAGE}) | |
if [ "${#CONTAINER}" -ne "${LENGTH}" ] ; then | |
echo "No running container for image: ${IMAGE}" | |
exit 1 | |
fi |
for
and while
# source: https://www.pythontutorial.net/advanced-python/python-decorators/ | |
def currency(fn): | |
def wrapper(*args, **kwargs): | |
result = fn(*args, **kwargs) | |
return f'${result}' | |
return wrapper | |
@currency |
The biggest of the big vs the smallest of the small
Comparing the highlighted sentences in each article
Hercules–Corona Borealis Great Wall