• 6TM
  • My links
  • Tags
  • pics
  • RSS
  • Login
Filter untagged links
23 results tagged TIL

[OPS] Replay historyhttps://sh.6tm.es/shaare/x_nu2Q

  • Script
  • OPS
  • GNU/Linux
  • Distribution
  • TIL
  • Script
  • OPS
  • GNU/Linux
  • Distribution
  • TIL

  • replay-history.sh
#!/bin/bash

# 1. Define the number of recent commands to replay (defaults to 5 if no argument is passed)
NUM_COMMANDS=${1:-5}

# 2. Point to the primary history file and explicitly enable history tracking 
HISTFILE=~/.bash_history
set -o history

# 3. Read the history file into the current script session
history -r

# 4. Extract the commands, skipping the execution of this script itself
# We use 'tail' to get the last N commands, then loop and run them.
history | tail -n "$((NUM_COMMANDS + 1))" | head -n "$NUM_COMMANDS" | awk '{$1=""; print $0}' | while read -r cmd; do
    echo "========================================"
    echo "Replaying: $cmd"
    echo "========================================"
    eval "$cmd"
done
Permalink
October 18, 2026 at 4:49:08 PM GMT+2
QRCode
archive.org

[OPS] Keep only README.md file in git repositoryhttps://sh.6tm.es/shaare/njRRoA

  • OPS
  • Tips
  • TIL
  • OPS
  • Tips
  • TIL

echo -e "*.md\n\!README.md" | tee -a .gitignore

Permalink
October 9, 2026 at 9:33:54 AM GMT+2
QRCode
archive.org

Est-ce qu'on peut changer la taille des sous-titres sur Android ? : r/VLChttps://www.reddit.com/r/VLC/comments/w120lj/can_subtitle_sizes_be_changed_on_android/?tl=fr

  • TIL
  • Media
  • Tip
  • Config
  • TIL
  • Media
  • Tip
  • Config

Ouvre VLC (l'appli, sans vidéo en cours) > Appuie sur Paramètres > Fais défiler jusqu'à la rubrique 'Paramètres supplémentaires' > Appuie sur Sous-titres > Appuie sur Taille des sous-titres > Choisis ce que tu préfères

Permalink
October 4, 2026 at 6:17:11 AM GMT+2
QRCode
archive.org

[YT-DLP] Fix "WARNING: [youtube] M6mYodf0dJM: There are missing subtitles languages because a PO token was not provided."https://sh.6tm.es/shaare/r999JA

  • TIL
  • Media
  • Fixit
  • Cli
  • TIL
  • Media
  • Fixit
  • Cli

pip install bgutil-ytdlp-pot-provider && docker run --name bgutil-provider -d --init -p 127.0.0.1:4416:4416 brainicism/bgutil-ytdlp-pot-provider
Permalink
September 30, 2026 at 12:51:54 PM GMT+2
QRCode
archive.org

vim search and replace using current line as reference point - Stack Overflowhttps://stackoverflow.com/questions/18020381/vim-search-and-replace-using-current-line-as-reference-point

  • Vim
  • TIL
  • Tip
  • OPS
  • Vim
  • TIL
  • Tip
  • OPS

You can use . for the current position, and .+10 for 10 lines down:

:.,.+10s/foo/bar/g

Some other useful ranges:

% for the whole file. Example: :%s/foo/bar/g.
'<,'> for the lines of visually selected block. This might get you more than you want of the visual selection starts or ends in the middle of a line. The whole line is included.
'a,'b from mark a to mark b.
.,$ from the current line to the end of the file.
Permalink
August 23, 2026 at 11:42:08 AM GMT+2
QRCode
archive.org

software recommendation - How do I convert a PNG to SVG? - Ask Ubuntuhttps://askubuntu.com/questions/470495/how-do-i-convert-a-png-to-svg

  • TIL
  • Media
  • Cli
  • Tool
  • Tip
  • TIL
  • Media
  • Cli
  • Tool
  • Tip

autotrace -output-format svg inputfile | tee inputfile.svg

Permalink
June 15, 2026 at 6:47:18 PM GMT+2
QRCode
archive.org

bash - Awk replace string in line - Stack Overflowhttps://stackoverflow.com/questions/39275121/awk-replace-string-in-line

  • awk
  • TIL
  • tip
  • GNU/Linux
  • OPS
  • awk
  • TIL
  • tip
  • GNU/Linux
  • OPS

awk '{sub(/are hello/,"are are")sub(/you hello/,"you you")}1' file

/foo/bar/how /SOME_TEXT_HERE/hello
/foo/bar/are are/SOME_OTHER_TEXT
/foo/bar/you you

Permalink
May 26, 2026 at 7:54:50 PM GMT+2
QRCode
archive.org

Convert multiple jpg images to mp4 video with ffmpeg commandhttps://sh.6tm.es/shaare/4qW72w

  • TIL
  • GNU/Linux
  • Tip
  • Media
  • Cli
  • OPS
  • TIL
  • GNU/Linux
  • Tip
  • Media
  • Cli
  • OPS

  • input.txt
    file 'photo1.jpg'
    file 'photo2.jpg'
    file 'photo3.jpg'
  • with 3 seconds of duration
    ffmpeg -f concat -safe 0 -r 1 -i input.txt -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4
Permalink
May 17, 2026 at 10:47:38 AM GMT+2
QRCode
archive.org

How the hell do i connect to my nas from my mac over nfs!? : r/synologyhttps://www.reddit.com/r/synology/comments/1tautsp/how_the_hell_do_i_connect_to_my_nas_from_my_mac/

  • MacOS
  • File
  • Network
  • Share
  • TIL
  • MacOS
  • File
  • Network
  • Share
  • TIL

  • usually
    diskutil unmount /Volumes/stuff; mount -o nfsvers=4 -t nfs 192.168.1.82:/volume1/stuff /Volumes/stuff
  • for Synology NAS
    sudo mount -o nfsvers=3,rw,sync -t nfs 192.168.1.82:/volume1/stuff /Volumes/stuff
Permalink
May 13, 2026 at 3:47:36 PM GMT+2
QRCode
archive.org

Install mediainfo plugin for Yazi on Macoshttps://sh.6tm.es/shaare/_84Ryg

  • MacOS
  • Media
  • Tool
  • Install
  • TIL
  • OPS
  • MacOS
  • Media
  • Tool
  • Install
  • TIL
  • OPS

brew install media-info # install mediainfo cli via Homebrew
ya pkg add boydaihungst/mediainfo # install mediainfo plugin for Yazi
# add mediainfo parameters in config
cat<<EOF>>~/.config/yazi/yazi.toml
[plugin]
  prepend_preloaders = [
    # Replace magick, image, video with mediainfo
    { mime = "{audio,video,image}/*", run = "mediainfo" },
    { mime = "application/subrip", run = "mediainfo" },
    # Adobe Illustrator, Adobe Photoshop is image/adobe.photoshop, already handled above
    { mime = "application/postscript", run = "mediainfo" },
  ]
  prepend_previewers = [
    # Replace magick, image, video with mediainfo
    { mime = "{audio,video,image}/*", run = "mediainfo"},
    { mime = "application/subrip", run = "mediainfo" },
    # Adobe Illustrator, Adobe Photoshop is image/adobe.photoshop, already handled above
    { mime = "application/postscript", run = "mediainfo" },
  ]
EOF
  • Source
Permalink
May 9, 2026 at 11:03:50 AM GMT+2
QRCode
archive.org

[TIL] Print file content from a specific commit for Githttps://sh.6tm.es/shaare/Jqy8yg

  • Git
  • TIL
  • Tip
  • Git
  • TIL
  • Tip

git show 6fd6475:playbook.yml

Permalink
May 5, 2026 at 9:41:34 AM GMT+2
QRCode
archive.org

How do I force SSH to use password instead of key? - Super Userhttps://superuser.com/questions/1376201/how-do-i-force-ssh-to-use-password-instead-of-key

  • Devops
  • TIL
  • Tip
  • Devops
  • TIL
  • Tip

ssh-copy-id -o PreferredAuthentications=password -o PubkeyAuthentication=no -i ~/.ssh/rsa_private_key <server> for copying ssh pubkey to remote server after password authentication

Permalink
April 14, 2026 at 12:15:11 PM GMT+2
QRCode
archive.org

This is How You Block Autoplay Completely in Firefox : r/firefoxhttps://www.reddit.com/r/firefox/comments/1hxcrwq/this_is_how_you_block_autoplay_completely_in/

  • Config
  • Firefox
  • Desktop
  • TIL
  • Config
  • Firefox
  • Desktop
  • TIL

  • about:config
    • Search for media.autoplay
    • Set media.autoplay.blocking_policy to 1
    • Set media.autoplay.default to 5

Bonus: How to set default volume level: media.volume.scale set to .25 (or other sub 1 number)

Permalink
March 23, 2026 at 8:16:01 PM GMT+1
QRCode
archive.org

Limit data usage with low data mode as MacOS confighttps://sh.6tm.es/shaare/PGcFYw

  • TIL
  • Config
  • MacOS
  • TIL
  • Config
  • MacOS

  • MacOS configuration
    settings > wifi > known networks > <your_ssid> > ... > network settings > low data mode
Permalink
March 16, 2026 at 6:59:59 AM GMT+1
QRCode
archive.org

Get main system information (Model/CPU/RAM Max) from dmidecodehttps://sh.6tm.es/shaare/GNVG0w

  • Snippet
  • Devops
  • Infra
  • TIL
  • Snippet
  • Devops
  • Infra
  • TIL

sudo dmidecode -t system -t processor -t memory | grep -Ev 'None|: [0-9]*$' | grep -E "Maximum Capacity|Serial Number|Product Name|Version"

Permalink
January 22, 2026 at 3:19:43 PM GMT+1
QRCode
archive.org

linuxserver/docker-webtop: Ubuntu, Alpine, Arch, and Fedora based Webtop images, Linux in a web browser supporting popular desktop environments.https://github.com/linuxserver/docker-webtop

  • Devops
  • Tool
  • Infra
  • Local
  • TIL
  • OPS
  • Devops
  • Tool
  • Infra
  • Local
  • TIL
  • OPS

  • get GNU/Linux OS in your brower with this docker-compose.yaml:
    services:
    webtop:
    container_name: webtop
    image: lscr.io/linuxserver/webtop:arch-xfce
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Paris           # ← change to your timezone
      - LC_ALL=fr_FR.UTF-8 
      - DOCKER_MODS=linuxserver/mods:universal-package-install
      - INSTALL_PACKAGES=git|tree|vim
    ports:
      - 3000:3000
    volumes:
      - ./webtop-config:/config         # persistent home directory + settings
      - ./tmp:/tmp
    shm_size: 1gb                       # very important for performance!
Permalink
January 22, 2026 at 11:36:34 AM GMT+1
QRCode
archive.org

Remove spaces from empty lineshttps://sh.6tm.es/shaare/b4sIFA

  • TIL
  • Devops
  • Lint
  • Tip
  • TIL
  • Devops
  • Lint
  • Tip

Due to Python lint.
find . -type f -name "*.py" -exec sed -i 's/^[[:space:]]*$//' {} \;

Permalink
January 20, 2026 at 6:17:18 AM GMT+1
QRCode
archive.org

How do you find out what Firefox Profile is running when Firefox is running? - Super Userhttps://superuser.com/questions/460223/how-do-you-find-out-what-firefox-profile-is-running-when-firefox-is-running

  • TIL
  • Firefox
  • Config
  • TIL
  • Firefox
  • Config

  • Enter "about:support" as URL and select the "Open containing folder" button. You can reach it using Menu "Help" -> "Troubleshooting Information", too:

  • MacOS default path: ${HOME}/Library/Application Support/Firefox/

Permalink
January 17, 2026 at 10:09:41 AM GMT+1
QRCode
archive.org

Convert m4a audio file in mp3 audio file with ffmpeg commandhttps://www.reddit.com/r/VLC/comments/1pxgtl1/can_i_convert_a_mp3_to_m4a/

  • Media
  • TIL
  • Tip
  • Convert
  • Tool
  • Media
  • TIL
  • Tip
  • Convert
  • Tool

ffmpeg -i inFile.m4a -c:a mp3 -b:a 192k outFile.mp3 #  if the conversion is failing use -vn
Permalink
January 7, 2026 at 11:02:15 PM GMT+1
QRCode
archive.org

Enable Share opt for Navidrome Docker configurationhttps://github.com/jimbrig/navidrome-server/blob/main/docker-compose.yml

  • Media
  • App
  • TIL
  • Tip
  • Media
  • App
  • TIL
  • Tip

In docker-compose.yaml:

  • add this:
    ---
    services:
    navidrome:
    ...
    environment:
      ND_ENABLESHARING: true
    ...
  • or via config file

Source

Permalink
January 7, 2026 at 10:42:27 PM GMT+1
QRCode
archive.org
1 / 2
Links per page
  • 20
  • 50
  • 100
Shaarli 111 shaares · Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation · Theme : Stack · Font : DINish
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community