This will delete everything in your .cache that was last accessed more than a year ago
find ~/.cache/ -type f -atime +365 -delete
Source: home directory – Is it okay to delete the ~/.cache folder? – Ask Ubuntu
This will delete everything in your .cache that was last accessed more than a year ago
find ~/.cache/ -type f -atime +365 -delete
Source: home directory – Is it okay to delete the ~/.cache folder? – Ask Ubuntu
I shall Eiffellize those, one day or another: 10 Powerful Python One-Liners. Python one-liners can be just as… | by Ishaan Gupta | Sep, 2022 | Python in Plain English
15 Weird Googling Tricks 99.9% of Developers Don’t Know About | JavaScript in Plain English
Well, I know most of them.
You might see a missing public GPG key error (“NO_PUBKEY”) on Debian, Ubuntu or Linux Mint when running apt update / apt-get update. This can happen when you add a repository, and you forget to add its public key, or maybe there was a temporary key server error when trying to import the GPG key.
Source: Fix Missing GPG Key Apt Repository Errors (NO_PUBKEY) – Linux Uprising Blog
Quick’n’dirty solution:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys THE_MISSING_KEY_HERE
sudo
apt update 2>&1 1>/dev/null | sed -ne 's/.<em>NO_PUBKEY //p' |
while read key; do if ! [[ ${keys[</em>]} =~ "$key" ]]; then sudo apt-key
adv --keyserver keyserver.ubuntu.com --recv-keys "$key"; keys+=("$key");
fi; done
Yes, I know apt-key is being deprecated…
willurd on web-servers.md show quite a few one-liner (or mostly) commands that will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. I think I will use only the Python 3.x version which is as simple as
python -m http.server 8000
Application for testing and sharing SQL queries.
Run macOS on QEMU/KVM. With OpenCore + Big Sur + Monterey support now! Only commercial (paid) support is available now to avoid spammy issues. No Mac system is required.
From https://github.com/kholia/OSX-KVM
I’ll try it because Sosumi which uses snap has some issues when dealing with some part of data linked in another partition (don’t ask me why I did it)
Update: Try this instead https://www.linuxuprising.com/2021/03/install-macos-big-sur-or-catalina-in.html and https://github.com/sickcodes/Docker-OSX
Linux Networking Commands That You Must Know | by Vikram Gupta | Nov, 2021 | Level Up Coding
Fine, I know and use them all: