Merge branch 'dev' into vhs

This commit is contained in:
2025-02-12 17:06:33 +01:00
52 changed files with 343 additions and 328 deletions

View File

@@ -1,6 +1,6 @@
---
title: "Archives"
tags: [ "tar", "backups" ]
tags: [ "tar", "backups", ".tgz", "tar.gz" ]
---
# `tar`

View File

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

View File

@@ -1,6 +1,7 @@
---
title: "gpg"
tags: [ "vim", "data", "GPG" ]
requires: [ "GPG Basics", "vim basics" ]
---
The `vim-gnupg` plugin lets vim edit gpg-encrypted files as if they were unencrypted.

View File

@@ -1,8 +1,11 @@
---
title: "PDF Metadata Erasure"
tags: [ "Metadata", "Ghost Script" ]
tags: [ "Metadata", "Ghost Script", "gs", ".pdf" ]
---
You cannot erase pdf metadata with `exiftool` (it only *appends* your changes).
To delete pdf metadata, you'll need `gs`.
Make a text file called 'pdfmark.txt'.

View File

@@ -1,6 +1,7 @@
---
title: "Board Games"
title: "Board Games with Recfiles"
tags: [ "data", "recfiles", "games" ]
requires: "Recfiles"
---
You can play with a board games database from boardgamegeek.com.

View File

@@ -1,6 +1,6 @@
---
title: "sc-im"
tags: [ "TUI", "data" ]
tags: [ "TUI", "data", "spreadsheet", ".csv" ]
---
- [Sample file](sc-im/sample.sc)

49
data/search_system.md Normal file
View File

@@ -0,0 +1,49 @@
---
title: "Search System"
tags: [ "data", "search", "locate", "plocate" ]
requires: "cron"
---
You can search every file on the computer instantly by installing `plocate`.
Once installed, run `sudo updatedb` to create the database of (nearly) every file on the computer.
Check how big the database is:
```sh
du -h /var/lib/plocate/plocate.db
```
Once you have the database, you can find nearly any file instantly.
- Search for gifs: `locate .gif`
- Search for gifs in the `/usr/` directory: `locate /usr/ .gif`
- Search for jpg images with 'dog' or 'Dog' in the name: `locate -i dog jpg`
- Search for videos: `plocate --regex '.mp4$|.mkv$|.wmv$|.webm$|.mov$|.avi$'`
For best results, run `updatedb` regularly, perhaps in [crontab](../system/cron.md).
## Search More Places
`plocate` will not search `/tmp/`, because nobody cares about those files, and won't search inside `/mnt/`, because that's where USB sticks get mounted, so the files keep changing as USB sticks come and go.
Change where `plocate` searches by editing the configuration file at `/etc/updatedb.conf`.
By default, the `/mnt` directory is 'pruned' from the database.
So if you want to search `/mnt` for videos, remove the word `/mnt` from the configuration file.
```bash
su root
cat /etc/updatedb.conf
sed -i 's#/mnt/##' /etc/updatedb.conf
updatedb
exit
```
Now you can search in `/mnt` for films:
```sh
plocate --regex '.mp4$|.mkv$|.wmv$|.webm$|.mov$|.avi$'
```

View File

@@ -1,6 +1,6 @@
---
title: "Soft Serve through https"
tags: [ "data", "git", "lfs" ]
tags: [ "data", "git server", "lfs" ]
---
## `http` Setup

View File

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