linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux [2024/02/22 21:11] – nine | linux [2026/04/26 13:41] (current) – [iptables/netfilter] nine | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== iptables/ | ===== iptables/ | ||
| + | |||
| Restrict to single host, e.g. for prometheus node exporter | Restrict to single host, e.g. for prometheus node exporter | ||
| + | # required for persisting rules | ||
| + | apt-get install iptables-persistent | ||
| + | | ||
| + | # set rules | ||
| iptables -N prometheus | iptables -N prometheus | ||
| iptables -A prometheus --src < | iptables -A prometheus --src < | ||
| Line 15: | Line 20: | ||
| iptables -I INPUT -m tcp -p tcp --dport 9100 -j prometheus | iptables -I INPUT -m tcp -p tcp --dport 9100 -j prometheus | ||
| | | ||
| + | # save persistent | ||
| + | iptables-save | tee / | ||
| + | |||
| ===== docker ===== | ===== docker ===== | ||
| Line 21: | Line 29: | ||
| docker exec -ti < | docker exec -ti < | ||
| + | |||
| + | ===== vim ===== | ||
| + | |||
| + | |||
| + | disable visual mode: | ||
| + | |||
| + | set mouse-=a | ||
| + | or | ||
| + | |||
| + | set mouse=nicr | ||
| + | |||
| + | |||
| + | ===== Firefox ===== | ||
| + | |||
| + | widget.non-native-theme.scrollbar.style | ||
| + | |||
| + | * 0: Standard-Stil der Plattform | ||
| + | * 1: macOS | ||
| + | * 2: GTK | ||
| + | * 3: Android | ||
| + | * 4: Windows 10 | ||
| + | * 5: Windows 11 | ||
| + | |||
| + | widget.non-native-theme.scrollbar.size.override | ||
| ===== email ===== | ===== email ===== | ||
| Line 31: | Line 63: | ||
| - https:// | - https:// | ||
| + | ==== pdf ==== | ||
| + | |||
| + | default: | ||
| + | ps2pdf input.pdf output.pdf | ||
| + | |||
| + | ghostscript options -dPDFSETTINGS | ||
| + | ps2pdf -dPDFSETTINGS=/ | ||
| + | |||
| + | possible options: | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | |||
| + | === remove password === | ||
| + | |||
| + | pdftk input.pdf input_pw " | ||
| ===== Video ===== | ===== Video ===== | ||
linux.1708636309.txt.gz · Last modified: 2024/02/22 21:11 by nine