Compare commits

..

No commits in common. "14470b6f92e96a1f441b01961426c17758fb1ee2" and "aa32bfc249eb78ecd6d70c1d40fdd588755e3fc3" have entirely different histories.

64 changed files with 76 additions and 78 deletions

@ -71,7 +71,7 @@ article: ## Write an article
filename="$$(echo "$$title" | tr '[:upper:]' '[:lower:]' | tr ' ' '_')" ;\ filename="$$(echo "$$title" | tr '[:upper:]' '[:lower:]' | tr ' ' '_')" ;\
printf '%s\n' '---' >> $$path/$$filename.md ;\ printf '%s\n' '---' >> $$path/$$filename.md ;\
printf 'title: "%s"\n' "$$title" >> $$path/$$filename.md ;\ printf 'title: "%s"\n' "$$title" >> $$path/$$filename.md ;\
printf 'tags: [ "%s" ]\n' "$$path" | tr '[:upper:]' '[:lower:]' | sed 's#\/#", "#g' >> $$path/$$filename.md ;\ printf 'tags: [ "%s" ]\n' "$$path" | sed 's#\/#", "#g' >> $$path/$$filename.md ;\
printf '%s\n\n' '---' >> $$path/$$filename.md ;\ printf '%s\n\n' '---' >> $$path/$$filename.md ;\
$(EDITOR) +5 "$$path/$$filename.md" $(EDITOR) +5 "$$path/$$filename.md"

@ -1,6 +1,6 @@
--- ---
title: "at" title: "at"
tags: [ "basics", "time" ] tags: [ "Basics", "time" ]
--- ---
Install with: Install with:

@ -1,6 +1,6 @@
--- ---
title: "Basics" title: "Basics"
tags: [ "basics" ] tags: [ "Basics" ]
--- ---
You need about a dozen commands to move around Linux. You need about a dozen commands to move around Linux.

@ -1,6 +1,6 @@
--- ---
title: "clock" title: "clock"
tags: [ "basics", "time" ] tags: [ "Basics", "time" ]
--- ---
Show system time: Show system time:

@ -1,6 +1,6 @@
--- ---
title: "conditionals" title: "conditionals"
tags: [ "basics" ] tags: [ "Basics" ]
--- ---
# If statements # If statements

@ -1,6 +1,6 @@
--- ---
title: "cron" title: "cron"
tags: [ "basics", "time" ] tags: [ "Basics", "time" ]
--- ---
# Cronie # Cronie

@ -1,6 +1,6 @@
--- ---
title: "bash games" title: "bash games"
tags: [ "games" ] tags: [ "Games" ]
--- ---
Games are a great way to learn bash. Games are a great way to learn bash.

@ -1,6 +1,6 @@
--- ---
title: "kill" title: "kill"
tags: [ "basics" ] tags: [ "Basics" ]
--- ---
If you want to kill a program in a graphical environment, open a terminal and type: If you want to kill a program in a graphical environment, open a terminal and type:

@ -1,6 +1,6 @@
--- ---
title: "locale" 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. Your locale tells the computer your location, preferred time-and-date format, standard language, papersize, et c.

@ -1,6 +1,6 @@
--- ---
title: "locating" title: "locating"
tags: [ "basics" ] tags: [ "Basics" ]
--- ---
# Type # Type

@ -1,6 +1,6 @@
--- ---
title: "processes" title: "processes"
tags: [ "basics" ] tags: [ "Basics" ]
--- ---
# Proccesses # Proccesses

@ -1,6 +1,6 @@
--- ---
title: "time" title: "time"
tags: [ "basics", "time" ] tags: [ "Basics", "time" ]
--- ---
# systemd # systemd

@ -1,6 +1,6 @@
--- ---
title: "users" title: "users"
tags: [ "basics" ] tags: [ "Basics" ]
--- ---
# Basic Information # Basic Information

@ -1,6 +1,6 @@
--- ---
title: "profanity" title: "profanity"
tags: [ "chat", "omemo" ] tags: [ "Chat", "omemo" ]
--- ---
# Setup (Commands) # Setup (Commands)

@ -1,6 +1,6 @@
--- ---
title: "wgetpaste" title: "wgetpaste"
tags: [ "chat" ] tags: [ "Chat" ]
--- ---
See available pastebins: See available pastebins:

@ -1,6 +1,6 @@
--- ---
title: "unison" 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). 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).

@ -1,6 +1,6 @@
--- ---
title: "khard" title: "khard"
tags: [ "data" ] tags: [ "Data" ]
--- ---
Get the basic config: Get the basic config:

@ -1,6 +1,6 @@
--- ---
title: "PDF Metadata Erasure" 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). You cannot erase pdf metadata with `exiftool` (it only *appends* your changes).

@ -1,6 +1,6 @@
--- ---
title: "task" title: "task"
tags: [ "organization" ] tags: [ "Organization" ]
--- ---
Set up the configuration file: Set up the configuration file:

@ -1,6 +1,6 @@
--- ---
title: "timewarrior" title: "timewarrior"
tags: [ "data", "tracking", "time", "timew" ] tags: [ "Data", "tracking", "time", "timew" ]
--- ---
# Summaries # Summaries

@ -1,6 +1,6 @@
--- ---
title: "autologin" title: "autologin"
tags: [ "distros", "arch" ] tags: [ "Distros", "Arch" ]
--- ---
# Automatic Login # Automatic Login

@ -1,6 +1,6 @@
--- ---
title: "Aeroplane Mode in Void" 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. 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 sv stop wpa_supplicant bluetoothd
``` ```
Find your device's name with `ip -color addr`. Find your device's name with `ip a`.
If unsure, try this: If unsure, try this:
```sh ```sh

@ -1,6 +1,6 @@
--- ---
title: "Void Autologin" title: "Void Autologin"
tags: [ "void" ] tags: [ "Void" ]
--- ---
Make the autologin service: Make the autologin service:

@ -1,6 +1,6 @@
--- ---
title: "extrace" title: "extrace"
tags: [ "void" ] tags: [ "Void" ]
--- ---
Monitor all processes: Monitor all processes:

@ -1,6 +1,6 @@
--- ---
title: "sv" title: "sv"
tags: [ "void" ] tags: [ "Void" ]
--- ---
# List Services # List Services

@ -1,6 +1,6 @@
--- ---
title: "Void Linux Basics" title: "Void Linux Basics"
tags: [ "void" ] tags: [ "Void" ]
--- ---
# Updates # Updates

@ -1,6 +1,6 @@
--- ---
title: "xbps" title: "xbps"
tags: [ "void" ] tags: [ "Void" ]
--- ---
## Search ## Search

@ -1,6 +1,6 @@
--- ---
title: "fail2ban" title: "fail2ban"
tags: [ "networking" ] tags: [ "Networking" ]
requires: [ "ssh" ] requires: [ "ssh" ]
--- ---
# SSH Daemon Jail # SSH Daemon Jail

@ -1,6 +1,6 @@
--- ---
title: "Easy Network Graph" title: "Easy Network Graph"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
Set up a file like this, called `troubleshooting.txt`. Set up a file like this, called `troubleshooting.txt`.

@ -1,6 +1,6 @@
--- ---
title: "iptables" title: "iptables"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
# Intro # Intro

@ -1,6 +1,6 @@
--- ---
title: "nmap" title: "nmap"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
Example: Example:

@ -1,6 +1,6 @@
--- ---
title: "pi-hole-server" title: "pi-hole-server"
tags: [ "distros" ] tags: [ "Distros" ]
--- ---
# Installation # Installation

@ -1,6 +1,6 @@
--- ---
title: "rclone" title: "rclone"
tags: [ "networking", "synch" ] tags: [ "Networking" ]
--- ---
The manpage's 'Synopsis' provides a fast reference. The manpage's 'Synopsis' provides a fast reference.
``` ```

@ -1,6 +1,6 @@
--- ---
title: "Download videos" title: "Download videos"
tags: [ "scraping" ] tags: [ "Scraping" ]
--- ---
Install `yt-dlp`. Install `yt-dlp`.

@ -1,6 +1,6 @@
--- ---
title: "Agate on Arch Linux" title: "Agate on Arch Linux"
tags: [ "networking", "arch", "gemini" ] tags: [ "Networking", "Arch", "Gemini" ]
--- ---
Docs are [here](https://github.com/mbrubeck/agate). Docs are [here](https://github.com/mbrubeck/agate).

@ -7,7 +7,7 @@ tags: [ "networking" ]
Try out basic ssh by accessing `git.charm.sh`, without needing authentication: Try out basic ssh by accessing `git.charm.sh`, without needing authentication:
```sh ```bash
ssh git.charm.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: Once it's installed, check it's working:
```sh ```bash
sudo systemctl status ssh sudo systemctl status ssh
``` ```
If that doesn't work, the service may be called `sshd`. If that doesn't work, the service may be called `sshd`.
```sh ```bash
sudo systemctl status sshd sudo systemctl status sshd
``` ```
Then start that service: Then start that service:
```sh ```bash
sudo systemctl start sshd sudo systemctl start sshd
``` ```
Test it works by using ssh into your own system, from inside: Test it works by using ssh into your own system, from inside:
```sh ```bash
ssh $USER@localhost ssh $USER@localhost
``` ```
Access the computer from another computer on the same local network by finding your computer's IP address. Access the computer from another computer on the same local network by finding your computer's IP address.
```sh ```bash
ip address | grep inet 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 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 descend. The second is an ipv6 address, which is too angelic for this world, and has yet to ascend.
The third will work from a remote computer. The third will work from a remote computer.
```sh ```bash
ssh $USERNAME@IP_ADDRESS ssh $USERNAME@IP_ADDRESS
``` ```
Once you have that, generate some ssh keys: Once you have that, generate some ssh keys:
```sh ```bash
ssh-keygen ssh-keygen
``` ```
Look at your keys: Look at your keys:
```sh ```bash
ls ~/.ssh ls ~/.ssh
``` ```
@ -82,7 +82,7 @@ The other is secret.
Now send those keys to a remote computer: Now send those keys to a remote computer:
```sh ```bash
ssh-copy-id $USERNAME@IP_ADDRESS ssh-copy-id $USERNAME@IP_ADDRESS
``` ```

@ -1,6 +1,6 @@
--- ---
title: "sshfs" title: "sshfs"
tags: [ "networking" ] tags: [ "Networking" ]
requires: [ "ssh" ] requires: [ "ssh" ]
--- ---
# Mount # Mount

@ -1,6 +1,6 @@
--- ---
title: "ssh-tricks" title: "ssh-tricks"
tags: [ "networking", "ssh", "tricks" ] tags: [ "Networking", "ssh", "tricks" ]
requires: [ "ssh" ] requires: [ "ssh" ]
--- ---

@ -1,9 +1,9 @@
--- ---
title: "tor" title: "tor"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
# Get a Hostname # Get a hostname
```bash ```bash
sudo vim /etc/tor/torrc sudo vim /etc/tor/torrc

@ -1,6 +1,6 @@
--- ---
title: "transmission" title: "transmission"
tags: [ "networking", "torrenting" ] tags: [ "Networking", "Torrenting" ]
--- ---
# Torrench # Torrench

@ -1,11 +1,11 @@
--- ---
title: "troubleshooting" title: "troubleshooting"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
# Do you have an IP? # 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 ```bash
dmesg | grep eth0 dmesg | grep eth0

@ -1,6 +1,6 @@
--- ---
title: "nginx" title: "nginx"
tags: [ "networking", "web" ] tags: [ "Networking" ]
--- ---
Install nginx: Install nginx:

@ -1,6 +1,6 @@
--- ---
title: "network" title: "network"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
# Netstat Stuff # Netstat Stuff

@ -1,6 +1,6 @@
--- ---
title: "wpa_supplicant" title: "wpa_supplicant"
tags: [ "networking" ] tags: [ "Networking" ]
--- ---
`wpa_supplicant` configurations are stored in `/etc/wpa_supplicant/wpa_supplicant-wlan0` (or equivalent). `wpa_supplicant` configurations are stored in `/etc/wpa_supplicant/wpa_supplicant-wlan0` (or equivalent).

@ -1,6 +1,6 @@
--- ---
title: "Basic Sound" title: "Basic Sound"
tags: [ "sound" ] tags: [ "Sound" ]
--- ---
# Pulse # Pulse

@ -1,6 +1,6 @@
--- ---
title: "festival" title: "festival"
tags: [ "sound" ] tags: [ "Sound" ]
--- ---
# Basics # Basics

@ -1,6 +1,6 @@
--- ---
title: "mpd" title: "mpd"
tags: [ "sound" ] tags: [ "Sound" ]
--- ---
# Setup # Setup

@ -1,6 +1,6 @@
--- ---
title: "ncmpcpp" title: "ncmpcpp"
tags: [ "sound" ] tags: [ "Sound" ]
--- ---
# Music Player Daemon # Music Player Daemon

@ -7,13 +7,11 @@ 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. Running `make help` will search for text which starts with `## ` and show what that target does.
```make ```make
.PHONY: help
help: ## Print the help message help: ## Print the help message
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \ @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
sort | \ sort | \
column -s ':' -t column -s ':' -t
.PHONY: clean
clean: ## Remove generated files clean: ## Remove generated files
$(RM) $(defaults) $(RM) $(defaults)
``` ```

@ -1,6 +1,6 @@
--- ---
title: "android" title: "android"
tags: [ "system", "phone" ] tags: [ "System", "phone" ]
--- ---
# mtpfs # mtpfs

@ -1,6 +1,6 @@
--- ---
title: "awk" title: "awk"
tags: [ "system", ".csv" ] tags: [ "System", ".csv" ]
--- ---
# Basics # Basics

@ -1,6 +1,6 @@
--- ---
title: "bash tips" title: "bash tips"
tags: [ "shell", "POSIX" ] tags: [ "Shell", "POSIX" ]
--- ---
## Track Live Changes ## Track Live Changes

@ -1,6 +1,6 @@
--- ---
title: "character-encoding" title: "character-encoding"
tags: [ "system", "encoding" ] tags: [ "System", "encoding" ]
--- ---
Convert a text file from one encoding type to another with: Convert a text file from one encoding type to another with:

@ -1,6 +1,6 @@
--- ---
title: "Default Programs" 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. Install the package `xdg-utils`, then make very liberal use of the tab button.

@ -1,6 +1,6 @@
--- ---
title: "lf - The Light File Manager" title: "lf - The Light File Manager"
tags: [ "file browser", "TUI" ] tags: [ "File Browser", "TUI" ]
--- ---
## Config File ## Config File

@ -1,6 +1,6 @@
--- ---
title: "logs" title: "logs"
tags: [ "system" ] tags: [ "System" ]
--- ---
# Basic # Basic

@ -1,6 +1,6 @@
--- ---
title: "Monitoring" title: "Monitoring"
tags: [ "system", "CPU", "memory" ] tags: [ "System", "CPU", "Memory" ]
--- ---
Print the average CPU load over 1 minute, 5 minutes, and 15 minutes: Print the average CPU load over 1 minute, 5 minutes, and 15 minutes:

@ -1,6 +1,6 @@
--- ---
title: "partitions" title: "partitions"
tags: [ "system" ] tags: [ "System" ]
--- ---
# FDisk Basics # FDisk Basics

@ -1,6 +1,6 @@
--- ---
title: "snaps" title: "snaps"
tags: [ "system", "Ubuntu", "snap" ] tags: [ "System", "Ubuntu", "snap" ]
--- ---
> sudo apt-get purge -y snapd > sudo apt-get purge -y snapd

@ -1,6 +1,6 @@
--- ---
title: "Docker" title: "Docker"
tags: [ "documentation", "virtualization" ] tags: [ "documentation", "Virtualization" ]
--- ---
```sh ```sh
sudo pacman -S docker sudo pacman -S docker

@ -1,6 +1,6 @@
--- ---
title: "virtualbox" title: "virtualbox"
tags: [ "system" ] tags: [ "System" ]
--- ---
# Setup # Setup

@ -1,6 +1,6 @@
--- ---
title: "ffmpeg" title: "ffmpeg"
tags: [ "sound", "vision" ] tags: [ "Sound", "Vision" ]
--- ---
# Basics # Basics

@ -1,6 +1,6 @@
--- ---
title: "imagemagick" title: "imagemagick"
tags: [ "vision" ] tags: [ "Vision" ]
--- ---
Convert jpg to png. Convert jpg to png.

@ -1,6 +1,6 @@
--- ---
title: "Markdown to PDF" title: "Markdown to PDF"
tags: [ "markdown", ".pdf", "vision" ] tags: [ "Markdown", "PDF", "Vision" ]
--- ---
Turn a markdown file into a pdf: Turn a markdown file into a pdf: