onny:notizen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| onny:notizen [2026/09/17 13:07] – [fd] 10.250.0.1 | onny:notizen [2026/10/13 11:49] (current) – [nixos] 2001:7c0:200:300:b:5000:0:2ff | ||
|---|---|---|---|
| Line 1131: | Line 1131: | ||
| nix-update stamp --version=branch=main | nix-update stamp --version=branch=main | ||
| nix-update --use-update-script python3Packages.django-filingcabinet | nix-update --use-update-script python3Packages.django-filingcabinet | ||
| + | </ | ||
| + | |||
| + | run dynamically linked app | ||
| + | |||
| + | <code bash> | ||
| + | NIXPKGS_ALLOW_UNFREE=1 nix run --impure nixpkgs# | ||
| </ | </ | ||
| ==== configuration ==== | ==== configuration ==== | ||
| Line 2073: | Line 2079: | ||
| </ | </ | ||
| - | ===== mariadb ===== | + | ===== mariadb |
| import dump | import dump | ||
| <code bash> | <code bash> | ||
| - | mariadb | + | mycli -u root nextcloud < mydump.sql |
| </ | </ | ||
| Line 2091: | Line 2097: | ||
| </ | </ | ||
| + | enable logging | ||
| + | |||
| + | <code sql> | ||
| + | SET GLOBAL general_log = 0; | ||
| + | SET GLOBAL log_output = ' | ||
| + | SET GLOBAL general_log_file = '/ | ||
| + | SET GLOBAL general_log = 1; | ||
| + | </ | ||
| + | <code bash> | ||
| + | ls -l / | ||
| + | </ | ||
| ===== postgresql ===== | ===== postgresql ===== | ||
| Line 2183: | Line 2200: | ||
| < | < | ||
| Ctrl-w v | Ctrl-w v | ||
| + | </ | ||
| + | |||
| + | update or reload current buffer | ||
| + | < | ||
| + | :reload | ||
| </ | </ | ||
| ===== traceroute ===== | ===== traceroute ===== | ||
| Line 2280: | Line 2302: | ||
| <code bash> | <code bash> | ||
| zcat / | zcat / | ||
| + | </ | ||
| + | |||
| + | ===== fd ===== | ||
| + | |||
| + | search for all files with specific extension in directory / | ||
| + | |||
| + | <code bash> | ||
| + | fd --type f -e fm . / | ||
| + | </ | ||
| + | |||
| + | zip all files with specific file extension | ||
| + | |||
| + | <code bash> | ||
| + | fd -t f -e fm . / | zip source -@ | ||
| + | </ | ||
| + | |||
| + | file creation timespan | ||
| + | |||
| + | <code bash> | ||
| + | fd --type f -e pdf --change-newer-than " | ||
| + | </ | ||
| + | |||
| + | execute command | ||
| + | |||
| + | <code bash> | ||
| + | fd --type f -e doc -e docx -e pdf -i gabriel -x cp --backup=t {} / | ||
| + | </ | ||
| + | |||
| + | find filenames unallowed characters | ||
| + | |||
| + | <code bash> | ||
| + | fd '[^A-Z a-züö@0-9._-]' | ||
| + | </ | ||
| + | |||
| + | remove empty dirs in dir " | ||
| + | |||
| + | <code bash> | ||
| + | fd --type empty --type directory . / | ||
| </ | </ | ||
onny/notizen.1789650446.txt.gz · Last modified: by 10.250.0.1
