diff --git a/data/base_16.md b/data/base_16.md index b283c4c..5580b2f 100644 --- a/data/base_16.md +++ b/data/base_16.md @@ -1,6 +1,6 @@ --- title: "Base 16" -tags: [ "Data" ] +tags: [ "data" ] --- ```bash diff --git a/data/calcurse.md b/data/calcurse.md index afebbfc..9b6c0f6 100644 --- a/data/calcurse.md +++ b/data/calcurse.md @@ -5,5 +5,10 @@ tags: [ "data", "calendar", "daylight savings" ] ## Setup -The UK government keeps an ics file with clock, [here](https://www.gov.uk/when-do-the-clocks-change/united-kingdom.ics). +The UK government keeps an `ics` file with clock. + +```sh +wget https://www.gov.uk/when-do-the-clocks-change/united-kingdom.ics +calcurse -i united-kingdom.ics +``` diff --git a/data/email.md b/data/email.md index fbcbc57..3124dc9 100644 --- a/data/email.md +++ b/data/email.md @@ -9,10 +9,10 @@ Install `opensmtpd` (or similar), then `ncat` or `nc` or `netcat` (this mysterio Start the `opensmtpd` service, then use netcat to speak with the mail-daemon: - -``` +```sh nc localhost 25 ``` + The computer should respond with code `220`, which means 'I am listening'. > 220 hex ESMTP OpenSMTPD @@ -40,7 +40,7 @@ Tell the mail daemon who you are in this format. Then tell it who you're sending to. -``` +```sh RCPT TO: ``` @@ -67,7 +67,7 @@ You will find the email under `/var/spool` or `/var/mail` or similar. If unsure, just take a part of your email, like `FRAGMENT="turn off server please"`, then `grep` for it: - ```bash + ```sh sudo grep -r $FRAGMENT /var/spool/* ``` diff --git a/data/exiftool.md b/data/exiftool.md index 6040c4e..2f27df8 100644 --- a/data/exiftool.md +++ b/data/exiftool.md @@ -1,17 +1,17 @@ --- title: "exiftool" -tags: [ "Metadata" ] +tags: [ "metadata", "exifdata" ] --- -Find metadata. +Find metadata: -```bash -exiftool image.jpg +```sh +exiftool "$file".jpg ``` -Find info on all images in current directory. +Find info on all `.png` images in current directory. -```bash +```sh exiftool -ext .png . ``` @@ -19,22 +19,14 @@ You can make this recurring with the -r switch. And overwrite all metadata: -```bash +```sh exiftool -all= -overwrite_original -ext jpg . ``` (NB: This does not work on pdf data. See [here](pdf_erasure.md) for erasing all pdf data) Or just GPS data: -```bash +```sh exiftool -gps:all= *.jpg ``` -You can also use the imagemagick tool: - -```bash -identify -verbose -``` - - - diff --git a/data/gpg.md b/data/gpg.md index 3f0bd28..2e489b6 100644 --- a/data/gpg.md +++ b/data/gpg.md @@ -1,6 +1,6 @@ --- title: "gpg" -tags: [ "data", "GPG" ] +tags: [ "data", "gpg" ] --- - [Setup](gpg/basics.md) diff --git a/data/groff.md b/data/groff.md index 452ffc3..3601617 100644 --- a/data/groff.md +++ b/data/groff.md @@ -1,6 +1,6 @@ --- title: "groff" -tags: [ "Data" ] +tags: [ "data", "logic" ] --- # Basic Documents diff --git a/data/khard.md b/data/khard.md index 9c9fa59..d113fa5 100644 --- a/data/khard.md +++ b/data/khard.md @@ -4,57 +4,49 @@ tags: [ "Data" ] --- Get the basic config: -```bash +```sh mkdir ~/.config/khard ``` -```bash +```sh cp /usr/share/doc/khard/examples/khard/khard.conf.example ~/.config/khard.conf ``` Short list -```bash +```sh khard list ``` Longer list -```bash +```sh khard show ``` Show from addressbook 'work' -```bash +```sh khard list -a work ``` Make a new contact in address book 'family' -```bash +```sh khard new -a family ``` -```bash +```sh khard edit grampa ``` -```bash +```sh khard remove bob ``` Move contact 'nina' from 'work' to 'home' address book. -```bash +```sh khard move -a home nina -A work ``` -## Advanced - -Merge: - -```bash -khard merge [-a source_abook] [-u uid|search terms [search terms ...]] [-A target_abook] [-U target_uid|-t target_search_terms] -``` - diff --git a/data/pass.md b/data/pass.md index c10a847..8aca8da 100644 --- a/data/pass.md +++ b/data/pass.md @@ -1,42 +1,42 @@ --- title: "pass" tags: [ "data" ] +requires: "GPG Basics" --- -[Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA) Setup [gpg](./gpg.md) keys. Show your gpg secret it: -```bash +```sh gpg --list-secret-keys ``` Then use the id number under `sec` to make a pass repo: -```bash +```sh KEY="$(gpg --list-secret-keys | grep -m 1 -A1 '^sec' | tail -n 1)" ``` -```bash +```sh pass init $KEY ``` To add a basic password, e.g. for `$WEBSITE`: -```bash +```sh pass $WEBSITE ``` To insert a multiline password, e.g. with a login name: -```bash +```sh pass add -m $WEBSITE ``` Remove a password: -```bash +```sh pass rm $WEBSITE ``` diff --git a/data/pdf-to-txt.md b/data/pdf-to-txt.md index 2367cef..47cebf5 100644 --- a/data/pdf-to-txt.md +++ b/data/pdf-to-txt.md @@ -2,7 +2,8 @@ title: "pdf to txt" tags: [ "data", "pdf", "ocr" ] --- -How to translate pdf book images to text (results are very poor, and will need lots of corrections). + +How to translate pdfs to text (results are very poor, and will need lots of corrections). ## Dependencies diff --git a/hardware/keyboard.md b/hardware/keyboard.md index b4a6a88..f81c3d8 100644 --- a/hardware/keyboard.md +++ b/hardware/keyboard.md @@ -9,7 +9,7 @@ This works everywhere, including in a bare-ass tty. Select a keymap, and create a new custom map. -```bash +```sh su root basemap=/usr/share/kbd/keymaps/i386/qwerty/pl1.map.gz @@ -22,7 +22,7 @@ gunzip -c $basemap | \ Tell the system to use this keymap at startup by naming it in the `rc.conf` file: -```bash +```sh echo "KEYMAP=$newmap" >> /etc/rc.conf cat /etc/rc.conf @@ -33,24 +33,24 @@ reboot Set layout to British English. -```bash +```sh setxkbmap -layout gb ``` Or Polish with: -```bash +```sh setxkbmap -layout pl ``` | Language | short | -|:--------|:------| -| Polish | pl | -| Serbian | rs | +|:---------|:------| +| Polish | `pl` | +| Serbian | `rs` | Set 'alt + shift', as the command which cycles through the British English, Polish and Serbian keyboard layout. -```bash +```sh setxkbmap -layout gb,pl,rs -option grp:alt_shift_toggle ``` diff --git a/networking/wifi.md b/networking/wifi.md index 86481c2..5cf28cd 100644 --- a/networking/wifi.md +++ b/networking/wifi.md @@ -1,7 +1,8 @@ --- -title: "wifi" +title: "network" tags: [ "Networking" ] --- + # Netstat Stuff Stats on local net usage within domain. diff --git a/networking/wireguard.md b/networking/wireguard.md index 68987c7..6cca495 100644 --- a/networking/wireguard.md +++ b/networking/wireguard.md @@ -1,6 +1,6 @@ --- title: "wireguard" -tags: [ "Networking", "VPN" ] +tags: [ "networking", "VPN" ] ---