linux
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux [2023/11/09 09:12] – created nine | linux [2025/01/09 06:28] (current) – nine | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Clean unused/ | Clean unused/ | ||
| snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then snap remove " | snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then snap remove " | ||
| + | |||
| + | |||
| + | ===== iptables/ | ||
| + | |||
| + | Restrict to single host, e.g. for prometheus node exporter | ||
| + | iptables -N prometheus | ||
| + | iptables -A prometheus --src < | ||
| + | iptables -A prometheus -j DROP | ||
| + | iptables -I INPUT -m tcp -p tcp --dport 9100 -j prometheus | ||
| + | | ||
| + | ===== docker ===== | ||
| + | |||
| + | open shell in a running container | ||
| + | |||
| + | docker exec -ti < | ||
| + | |||
| + | |||
| + | ===== email ===== | ||
| + | |||
| + | ==== sender guidelines ==== | ||
| + | |||
| + | - https:// | ||
| + | - https:// | ||
| + | - https:// | ||
| + | - https:// | ||
| + | |||
| + | ==== pdf ==== | ||
| + | |||
| + | default: | ||
| + | ps2pdf input.pdf output.pdf | ||
| + | |||
| + | ghostscript options -dPDFSETTINGS | ||
| + | ps2pdf -dPDFSETTINGS=/ | ||
| + | |||
| + | possible options: | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | -dPDFSETTINGS=/ | ||
| + | |||
| + | ===== Video ===== | ||
| + | |||
| + | compress video for email sending | ||
| + | |||
| + | ffmpeg -i input.mp4 output_compressed.mp4 | ||
| + | |||
| + | adjust volume | ||
| + | ffmpeg -i input.avi -af " | ||
| + | | ||
| + | gives: | ||
| + | [Parsed_volumedetect_0 @ 0x55f12ff28780] n_samples: 1839104 | ||
| + | [Parsed_volumedetect_0 @ 0x55f12ff28780] mean_volume: | ||
| + | [Parsed_volumedetect_0 @ 0x55f12ff28780] max_volume: -31.5 dB | ||
| + | [Parsed_volumedetect_0 @ 0x55f12ff28780] histogram_31db: | ||
| + | [Parsed_volumedetect_0 @ 0x55f12ff28780] histogram_32db: | ||
| + | [Parsed_volumedetect_0 @ 0x55f12ff28780] histogram_33db: | ||
| + | |||
| + | |||
| + | increase max volume: | ||
| + | ffmpeg -i input.avi -af " | ||
| + | | ||
| + | | ||
| + | flip image | ||
| + | ffmpeg -i input.mp4 -vf " | ||
| + | | ||
| + | transpose options: | ||
| + | 0 = 90° counter-clockwise and vertical flip (default) | ||
| + | 1 = 90° clockwise | ||
| + | 2 = 90° counter-clockwise | ||
| + | 3 = 90° clockwise and vertical flip | ||
| + | |||
linux.1699521131.txt.gz · Last modified: 2023/11/09 09:12 by nine