diff --git a/Makefile b/Makefile index 2951f5b..114a0f3 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ article: ## Write an article filename="$$(echo "$$title" | tr '[:upper:]' '[:lower:]' | tr ' ' '_')" ;\ printf '%s\n' '---' >> $$path/$$filename.md ;\ printf 'title: "%s"\n' "$$title" >> $$path/$$filename.md ;\ - printf 'tags: [ "%s" ]\n' "$$path" | sed 's#\/#", "#g' >> $$path/$$filename.md ;\ + printf 'tags: [ "%s" ]\n' "$$path" | tr '[:upper:]' '[:lower:]' | sed 's#\/#", "#g' >> $$path/$$filename.md ;\ printf '%s\n\n' '---' >> $$path/$$filename.md ;\ $(EDITOR) +5 "$$path/$$filename.md" diff --git a/basics/at.md b/basics/at.md index 7584ba7..a7a466a 100644 --- a/basics/at.md +++ b/basics/at.md @@ -1,6 +1,6 @@ --- title: "at" -tags: [ "Basics", "time" ] +tags: [ "basics", "time" ] --- Install with: diff --git a/basics/basics.md b/basics/basics.md index 57e9080..7ac342c 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -1,6 +1,6 @@ --- title: "Basics" -tags: [ "Basics" ] +tags: [ "basics" ] --- You need about a dozen commands to move around Linux. diff --git a/basics/clock.md b/basics/clock.md index c116310..50ac171 100644 --- a/basics/clock.md +++ b/basics/clock.md @@ -1,6 +1,6 @@ --- title: "clock" -tags: [ "Basics", "time" ] +tags: [ "basics", "time" ] --- Show system time: diff --git a/basics/conditionals.md b/basics/conditionals.md index a251456..2880151 100644 --- a/basics/conditionals.md +++ b/basics/conditionals.md @@ -1,6 +1,6 @@ --- title: "conditionals" -tags: [ "Basics" ] +tags: [ "basics" ] --- # If statements diff --git a/basics/cron.md b/basics/cron.md index 439b07a..27c7868 100644 --- a/basics/cron.md +++ b/basics/cron.md @@ -1,6 +1,6 @@ --- title: "cron" -tags: [ "Basics", "time" ] +tags: [ "basics", "time" ] --- # Cronie diff --git a/basics/games.md b/basics/games.md index a5ac35a..f5a49b9 100644 --- a/basics/games.md +++ b/basics/games.md @@ -1,6 +1,6 @@ --- title: "bash games" -tags: [ "Games" ] +tags: [ "games" ] --- Games are a great way to learn bash. diff --git a/basics/kill.md b/basics/kill.md index 49d834a..190f357 100644 --- a/basics/kill.md +++ b/basics/kill.md @@ -1,6 +1,6 @@ --- title: "kill" -tags: [ "Basics" ] +tags: [ "basics" ] --- If you want to kill a program in a graphical environment, open a terminal and type: diff --git a/basics/locale.md b/basics/locale.md index fce6e33..69f9b7a 100644 --- a/basics/locale.md +++ b/basics/locale.md @@ -1,6 +1,6 @@ --- title: "locale" -tags: [ "Basics", "time" ] +tags: [ "basics", "time" ] --- Your locale tells the computer your location, preferred time-and-date format, standard language, papersize, et c. diff --git a/basics/locating.md b/basics/locating.md index 644f3ae..87c6464 100644 --- a/basics/locating.md +++ b/basics/locating.md @@ -1,6 +1,6 @@ --- title: "locating" -tags: [ "Basics" ] +tags: [ "basics" ] --- # Type diff --git a/basics/processes.md b/basics/processes.md index 393515d..f089d09 100644 --- a/basics/processes.md +++ b/basics/processes.md @@ -1,6 +1,6 @@ --- title: "processes" -tags: [ "Basics" ] +tags: [ "basics" ] --- # Proccesses diff --git a/basics/time.md b/basics/time.md index aec7a88..ddaa121 100644 --- a/basics/time.md +++ b/basics/time.md @@ -1,6 +1,6 @@ --- title: "time" -tags: [ "Basics", "time" ] +tags: [ "basics", "time" ] --- # systemd diff --git a/basics/users.md b/basics/users.md index f45ab45..e8777d8 100644 --- a/basics/users.md +++ b/basics/users.md @@ -1,6 +1,6 @@ --- title: "users" -tags: [ "Basics" ] +tags: [ "basics" ] --- # Basic Information diff --git a/chat/profanity.md b/chat/profanity.md index 1c2554a..9a30983 100644 --- a/chat/profanity.md +++ b/chat/profanity.md @@ -1,6 +1,6 @@ --- title: "profanity" -tags: [ "Chat", "omemo" ] +tags: [ "chat", "omemo" ] --- # Setup (Commands) diff --git a/chat/wgetpaste.md b/chat/wgetpaste.md index 27c800c..f9b0c3d 100644 --- a/chat/wgetpaste.md +++ b/chat/wgetpaste.md @@ -1,6 +1,6 @@ --- title: "wgetpaste" -tags: [ "Chat" ] +tags: [ "chat" ] --- See available pastebins: diff --git a/data/backups/unison.md b/data/backups/unison.md index 3108a45..480dd46 100644 --- a/data/backups/unison.md +++ b/data/backups/unison.md @@ -1,6 +1,6 @@ --- title: "unison" -tags: [ "Backups", "synch" ] +tags: [ "backups", "synch" ] --- Install unison on both machines, and make sure both have the same version of unison, with the same version of the ocaml compiler (the smallest difference will cause problems). diff --git a/data/khard.md b/data/khard.md index d113fa5..a68eceb 100644 --- a/data/khard.md +++ b/data/khard.md @@ -1,6 +1,6 @@ --- title: "khard" -tags: [ "Data" ] +tags: [ "data" ] --- Get the basic config: diff --git a/data/pdf_erasure.md b/data/pdf_erasure.md index af97986..4baafd0 100644 --- a/data/pdf_erasure.md +++ b/data/pdf_erasure.md @@ -1,6 +1,6 @@ --- title: "PDF Metadata Erasure" -tags: [ "Metadata", "Ghost Script", "gs", ".pdf" ] +tags: [ "metadata", "ghost script", "gs", ".pdf" ] --- You cannot erase pdf metadata with `exiftool` (it only *appends* your changes). diff --git a/data/taskwarrior/task.md b/data/taskwarrior/task.md index 5ab0ea8..b1ee2c1 100644 --- a/data/taskwarrior/task.md +++ b/data/taskwarrior/task.md @@ -1,6 +1,6 @@ --- title: "task" -tags: [ "Organization" ] +tags: [ "organization" ] --- Set up the configuration file: diff --git a/data/taskwarrior/timew.md b/data/taskwarrior/timew.md index 6ffa06f..0ac1081 100644 --- a/data/taskwarrior/timew.md +++ b/data/taskwarrior/timew.md @@ -1,6 +1,6 @@ --- title: "timewarrior" -tags: [ "Data", "tracking", "time", "timew" ] +tags: [ "data", "tracking", "time", "timew" ] --- # Summaries diff --git a/distros/arch/autologin.md b/distros/arch/autologin.md index c2fab61..ce74af5 100644 --- a/distros/arch/autologin.md +++ b/distros/arch/autologin.md @@ -1,6 +1,6 @@ --- title: "autologin" -tags: [ "Distros", "Arch" ] +tags: [ "distros", "arch" ] --- # Automatic Login diff --git a/distros/void/aeroplanes.md b/distros/void/aeroplanes.md index 472a81a..1cf414a 100644 --- a/distros/void/aeroplanes.md +++ b/distros/void/aeroplanes.md @@ -1,6 +1,6 @@ --- title: "Aeroplane Mode in Void" -tags: [ "Void" ] +tags: [ "void" ] --- Put your device in 'aeroplane' mode (e.g. where no trace of signal leaves it) by turning off Wi-Fi and blue-tooth. @@ -9,7 +9,7 @@ su root sv stop wpa_supplicant bluetoothd ``` -Find your device's name with `ip a`. +Find your device's name with `ip -color addr`. If unsure, try this: ```sh diff --git a/distros/void/autologin.md b/distros/void/autologin.md index c2a3b52..5a6d5f8 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -1,6 +1,6 @@ --- title: "Void Autologin" -tags: [ "Void" ] +tags: [ "void" ] --- Make the autologin service: diff --git a/distros/void/extrace.md b/distros/void/extrace.md index 72da239..12d1e4f 100644 --- a/distros/void/extrace.md +++ b/distros/void/extrace.md @@ -1,6 +1,6 @@ --- title: "extrace" -tags: [ "Void" ] +tags: [ "void" ] --- Monitor all processes: diff --git a/distros/void/sv.md b/distros/void/sv.md index c8ae1bb..95903de 100644 --- a/distros/void/sv.md +++ b/distros/void/sv.md @@ -1,6 +1,6 @@ --- title: "sv" -tags: [ "Void" ] +tags: [ "void" ] --- # List Services diff --git a/distros/void/void_basics.md b/distros/void/void_basics.md index c7194a2..91ec92a 100644 --- a/distros/void/void_basics.md +++ b/distros/void/void_basics.md @@ -1,6 +1,6 @@ --- title: "Void Linux Basics" -tags: [ "Void" ] +tags: [ "void" ] --- # Updates diff --git a/distros/void/xbps.md b/distros/void/xbps.md index 77fbb41..ab7f83a 100644 --- a/distros/void/xbps.md +++ b/distros/void/xbps.md @@ -1,6 +1,6 @@ --- title: "xbps" -tags: [ "Void" ] +tags: [ "void" ] --- ## Search diff --git a/networking/fail2ban.md b/networking/fail2ban.md index c7866d1..5112855 100644 --- a/networking/fail2ban.md +++ b/networking/fail2ban.md @@ -1,6 +1,6 @@ --- title: "fail2ban" -tags: [ "Networking" ] +tags: [ "networking" ] requires: [ "ssh" ] --- # SSH Daemon Jail diff --git a/networking/graph-easy.md b/networking/graph-easy.md index 8aab816..ab83833 100644 --- a/networking/graph-easy.md +++ b/networking/graph-easy.md @@ -1,6 +1,6 @@ --- title: "Easy Network Graph" -tags: [ "Networking" ] +tags: [ "networking" ] --- Set up a file like this, called `troubleshooting.txt`. diff --git a/networking/iptables.md b/networking/iptables.md index 302a0fe..2477829 100644 --- a/networking/iptables.md +++ b/networking/iptables.md @@ -1,6 +1,6 @@ --- title: "iptables" -tags: [ "Networking" ] +tags: [ "networking" ] --- # Intro diff --git a/networking/nmap.md b/networking/nmap.md index 98927f1..118a2ef 100644 --- a/networking/nmap.md +++ b/networking/nmap.md @@ -1,6 +1,6 @@ --- title: "nmap" -tags: [ "Networking" ] +tags: [ "networking" ] --- Example: diff --git a/networking/pi-hole-server.md b/networking/pi-hole-server.md index 0044d28..19d4370 100644 --- a/networking/pi-hole-server.md +++ b/networking/pi-hole-server.md @@ -1,6 +1,6 @@ --- title: "pi-hole-server" -tags: [ "Distros" ] +tags: [ "distros" ] --- # Installation diff --git a/networking/rclone.md b/networking/rclone.md index ad90260..7746efe 100644 --- a/networking/rclone.md +++ b/networking/rclone.md @@ -1,6 +1,6 @@ --- title: "rclone" -tags: [ "Networking" ] +tags: [ "networking", "synch" ] --- The manpage's 'Synopsis' provides a fast reference. ``` diff --git a/networking/scraping/youtube-dl.md b/networking/scraping/youtube-dl.md index c42d2e5..88d9f7c 100644 --- a/networking/scraping/youtube-dl.md +++ b/networking/scraping/youtube-dl.md @@ -1,6 +1,6 @@ --- title: "Download videos" -tags: [ "Scraping" ] +tags: [ "scraping" ] --- Install `yt-dlp`. diff --git a/networking/servers/agate.md b/networking/servers/agate.md index a082584..36615c8 100644 --- a/networking/servers/agate.md +++ b/networking/servers/agate.md @@ -1,6 +1,6 @@ --- title: "Agate on Arch Linux" -tags: [ "Networking", "Arch", "Gemini" ] +tags: [ "networking", "arch", "gemini" ] --- Docs are [here](https://github.com/mbrubeck/agate). diff --git a/networking/ssh.md b/networking/ssh.md index ffb3f17..8b97ff8 100644 --- a/networking/ssh.md +++ b/networking/ssh.md @@ -7,7 +7,7 @@ tags: [ "networking" ] Try out basic ssh by accessing `git.charm.sh`, without needing authentication: -```bash +```sh ssh git.charm.sh ``` @@ -16,32 +16,32 @@ The ssh server is sometimes in a package called `openssh`, and sometimes only in Once it's installed, check it's working: -```bash +```sh sudo systemctl status ssh ``` If that doesn't work, the service may be called `sshd`. -```bash +```sh sudo systemctl status sshd ``` Then start that service: -```bash +```sh sudo systemctl start sshd ``` Test it works by using ssh into your own system, from inside: -```bash +```sh ssh $USER@localhost ``` Access the computer from another computer on the same local network by finding your computer's IP address. -```bash +```sh ip address | grep inet ``` @@ -56,24 +56,24 @@ Here is mine: The first one starts `127`, which means it returns back to that computer (like `localhost`). -The second is an ipv6 address, which is too angelic for this world, and has yet to ascend. +The second is an ipv6 address, which is too angelic for this world, and has yet to descend. The third will work from a remote computer. -```bash +```sh ssh $USERNAME@IP_ADDRESS ``` Once you have that, generate some ssh keys: -```bash +```sh ssh-keygen ``` Look at your keys: -```bash +```sh ls ~/.ssh ``` @@ -82,7 +82,7 @@ The other is secret. Now send those keys to a remote computer: -```bash +```sh ssh-copy-id $USERNAME@IP_ADDRESS ``` diff --git a/networking/ssh/sshfs.md b/networking/ssh/sshfs.md index e6cc426..8b3f07f 100644 --- a/networking/ssh/sshfs.md +++ b/networking/ssh/sshfs.md @@ -1,6 +1,6 @@ --- title: "sshfs" -tags: [ "Networking" ] +tags: [ "networking" ] requires: [ "ssh" ] --- # Mount diff --git a/networking/ssh/tricks.md b/networking/ssh/tricks.md index d2f148f..9e21b4f 100644 --- a/networking/ssh/tricks.md +++ b/networking/ssh/tricks.md @@ -1,6 +1,6 @@ --- title: "ssh-tricks" -tags: [ "Networking", "ssh", "tricks" ] +tags: [ "networking", "ssh", "tricks" ] requires: [ "ssh" ] --- diff --git a/networking/tor.md b/networking/tor.md index ac71971..e04a2bb 100644 --- a/networking/tor.md +++ b/networking/tor.md @@ -1,9 +1,9 @@ --- title: "tor" -tags: [ "Networking" ] +tags: [ "networking" ] --- -# Get a hostname +# Get a Hostname ```bash sudo vim /etc/tor/torrc diff --git a/networking/transmission.md b/networking/transmission.md index db3563f..ece27dd 100644 --- a/networking/transmission.md +++ b/networking/transmission.md @@ -1,6 +1,6 @@ --- title: "transmission" -tags: [ "Networking", "Torrenting" ] +tags: [ "networking", "torrenting" ] --- # Torrench diff --git a/networking/troubleshooting.md b/networking/troubleshooting.md index 6a6bb92..474e4ab 100644 --- a/networking/troubleshooting.md +++ b/networking/troubleshooting.md @@ -1,11 +1,11 @@ --- title: "troubleshooting" -tags: [ "Networking" ] +tags: [ "networking" ] --- # Do you have an IP? -If not, try checking out what your local Networking interfaces are, then check if they have been picked up: +If not, try checking out what your local networking interfaces are, then check if they have been picked up: ```bash dmesg | grep eth0 diff --git a/networking/website/nginx.md b/networking/website/nginx.md index 7c144e6..f4e28d2 100644 --- a/networking/website/nginx.md +++ b/networking/website/nginx.md @@ -1,6 +1,6 @@ --- title: "nginx" -tags: [ "Networking" ] +tags: [ "networking", "web" ] --- Install nginx: diff --git a/networking/wifi.md b/networking/wifi.md index 5cf28cd..fb06bf6 100644 --- a/networking/wifi.md +++ b/networking/wifi.md @@ -1,6 +1,6 @@ --- title: "network" -tags: [ "Networking" ] +tags: [ "networking" ] --- # Netstat Stuff diff --git a/networking/wpa_supplicant.md b/networking/wpa_supplicant.md index 8aa2681..2c54282 100644 --- a/networking/wpa_supplicant.md +++ b/networking/wpa_supplicant.md @@ -1,6 +1,6 @@ --- title: "wpa_supplicant" -tags: [ "Networking" ] +tags: [ "networking" ] --- `wpa_supplicant` configurations are stored in `/etc/wpa_supplicant/wpa_supplicant-wlan0` (or equivalent). diff --git a/sound/basics.md b/sound/basics.md index af4d2c0..b15a893 100644 --- a/sound/basics.md +++ b/sound/basics.md @@ -1,6 +1,6 @@ --- title: "Basic Sound" -tags: [ "Sound" ] +tags: [ "sound" ] --- # Pulse diff --git a/sound/festival.md b/sound/festival.md index 9adade8..e70fbec 100644 --- a/sound/festival.md +++ b/sound/festival.md @@ -1,6 +1,6 @@ --- title: "festival" -tags: [ "Sound" ] +tags: [ "sound" ] --- # Basics diff --git a/sound/mpd.md b/sound/mpd.md index c6a4e2c..dd4b707 100644 --- a/sound/mpd.md +++ b/sound/mpd.md @@ -1,6 +1,6 @@ --- title: "mpd" -tags: [ "Sound" ] +tags: [ "sound" ] --- # Setup diff --git a/sound/ncmpcpp.md b/sound/ncmpcpp.md index 881bde0..0ea29fe 100644 --- a/sound/ncmpcpp.md +++ b/sound/ncmpcpp.md @@ -1,6 +1,6 @@ --- title: "ncmpcpp" -tags: [ "Sound" ] +tags: [ "sound" ] --- # Music Player Daemon diff --git a/system/Makefiles/help.md b/system/Makefiles/help.md index c3e4c62..2c2829a 100644 --- a/system/Makefiles/help.md +++ b/system/Makefiles/help.md @@ -7,11 +7,13 @@ Make your first target 'help' to give an overview of the main targets. Running `make help` will search for text which starts with `## ` and show what that target does. ```make +.PHONY: help help: ## Print the help message @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \ sort | \ column -s ':' -t +.PHONY: clean clean: ## Remove generated files $(RM) $(defaults) ``` diff --git a/system/android.md b/system/android.md index 99248c5..bff4a73 100644 --- a/system/android.md +++ b/system/android.md @@ -1,6 +1,6 @@ --- title: "android" -tags: [ "System", "phone" ] +tags: [ "system", "phone" ] --- # mtpfs diff --git a/system/awk.md b/system/awk.md index da50197..af538d8 100644 --- a/system/awk.md +++ b/system/awk.md @@ -1,6 +1,6 @@ --- title: "awk" -tags: [ "System", ".csv" ] +tags: [ "system", ".csv" ] --- # Basics diff --git a/system/bash_tricks.md b/system/bash_tricks.md index 7fa4297..eb67195 100644 --- a/system/bash_tricks.md +++ b/system/bash_tricks.md @@ -1,6 +1,6 @@ --- title: "bash tips" -tags: [ "Shell", "POSIX" ] +tags: [ "shell", "POSIX" ] --- ## Track Live Changes diff --git a/system/character-encoding.md b/system/character-encoding.md index ad79380..686dd83 100644 --- a/system/character-encoding.md +++ b/system/character-encoding.md @@ -1,6 +1,6 @@ --- title: "character-encoding" -tags: [ "System", "encoding" ] +tags: [ "system", "encoding" ] --- Convert a text file from one encoding type to another with: diff --git a/system/default_programs.md b/system/default_programs.md index 3a205bf..a59164e 100644 --- a/system/default_programs.md +++ b/system/default_programs.md @@ -1,6 +1,6 @@ --- title: "Default Programs" -tags: [ "Defaults", "Mime Type" ] +tags: [ "defaults", "mime type" ] --- Install the package `xdg-utils`, then make very liberal use of the tab button. diff --git a/system/lf.md b/system/lf.md index b617451..24c5629 100644 --- a/system/lf.md +++ b/system/lf.md @@ -1,6 +1,6 @@ --- title: "lf - The Light File Manager" -tags: [ "File Browser", "TUI" ] +tags: [ "file browser", "TUI" ] --- ![lf](/tapes/lf.gif) diff --git a/system/logs.md b/system/logs.md index fa4aa4f..922d5a8 100644 --- a/system/logs.md +++ b/system/logs.md @@ -1,6 +1,6 @@ --- title: "logs" -tags: [ "System" ] +tags: [ "system" ] --- # Basic diff --git a/system/monitoring.md b/system/monitoring.md index 984e6ab..d81d68a 100644 --- a/system/monitoring.md +++ b/system/monitoring.md @@ -1,6 +1,6 @@ --- title: "Monitoring" -tags: [ "System", "CPU", "Memory" ] +tags: [ "system", "CPU", "memory" ] --- Print the average CPU load over 1 minute, 5 minutes, and 15 minutes: diff --git a/system/partitions.md b/system/partitions.md index d12193c..8993a3c 100644 --- a/system/partitions.md +++ b/system/partitions.md @@ -1,6 +1,6 @@ --- title: "partitions" -tags: [ "System" ] +tags: [ "system" ] --- # FDisk Basics diff --git a/system/snaps.md b/system/snaps.md index c142a2c..7a9c77e 100644 --- a/system/snaps.md +++ b/system/snaps.md @@ -1,6 +1,6 @@ --- title: "snaps" -tags: [ "System", "Ubuntu", "snap" ] +tags: [ "system", "Ubuntu", "snap" ] --- > sudo apt-get purge -y snapd diff --git a/virtualization/docker.md b/virtualization/docker.md index 2e2acca..5997c69 100644 --- a/virtualization/docker.md +++ b/virtualization/docker.md @@ -1,6 +1,6 @@ --- title: "Docker" -tags: [ "documentation", "Virtualization" ] +tags: [ "documentation", "virtualization" ] --- ```sh sudo pacman -S docker diff --git a/virtualization/virtualbox.md b/virtualization/virtualbox.md index 01b0daf..e93bada 100644 --- a/virtualization/virtualbox.md +++ b/virtualization/virtualbox.md @@ -1,6 +1,6 @@ --- title: "virtualbox" -tags: [ "System" ] +tags: [ "system" ] --- # Setup diff --git a/vision/ffmpeg.md b/vision/ffmpeg.md index aee14c8..4b90f47 100644 --- a/vision/ffmpeg.md +++ b/vision/ffmpeg.md @@ -1,6 +1,6 @@ --- title: "ffmpeg" -tags: [ "Sound", "Vision" ] +tags: [ "sound", "vision" ] --- # Basics diff --git a/vision/imagemagick.md b/vision/imagemagick.md index 934b83d..9362343 100644 --- a/vision/imagemagick.md +++ b/vision/imagemagick.md @@ -1,6 +1,6 @@ --- title: "imagemagick" -tags: [ "Vision" ] +tags: [ "vision" ] --- Convert jpg to png. diff --git a/vision/lowdown.md b/vision/lowdown.md index 0e5e854..4aeca24 100644 --- a/vision/lowdown.md +++ b/vision/lowdown.md @@ -1,6 +1,6 @@ --- title: "Markdown to PDF" -tags: [ "Markdown", "PDF", "Vision" ] +tags: [ "markdown", ".pdf", "vision" ] --- Turn a markdown file into a pdf: