- git switch main && git pull && git switch -
- git log --oneline
-
- make a title line and a list of critical changes
- git rebase -i main
-
- newest commit is at bottom, ex: line 18
-
- for line 1, change to pick
cal -3
is very usefulThis 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
set LESS
environment variable to: -SXIFRs
in your .bash_profile or .bashrc:
-S
: chop lines, side scroll with left/right arrow keys-X
: leave contents on screen when less exits-I
: ignore case when searching with /
or ?
-F
: quit immediately when the entire file fits in one screen-R
: enable colored output-s
: squeeze blank lines into a single blank lineuseful:
The biggest of the big vs the smallest of the small
Comparing the highlighted sentences in each article
Hercules–Corona Borealis Great Wall
#!/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 |
from __future__ import absolute_import | |
try: | |
import cStringIO as StringIO | |
except ImportError: | |
import StringIO | |
# Standard Library | |
import re | |
import string |
for
and while