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

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

Find Youtube Channel ID for RSS Feedhttps://sh.6tm.es/shaare/At1oNg

  • RSS
  • TIL
  • Tip
  • RSS
  • TIL
  • Tip

  • below Youtube Channel Profile
  • click on "more.." profile
  • click "Share channel"
  • click "Copy channel ID"
  • https://www.youtube.com/feeds/videos.xml?channel_id=<channel_id> to get its RSS Feed
Permalink
January 7, 2026 at 9:19:54 PM GMT+1
QRCode
archive.org

How to automatically reload Ghostty configuration?https://sh.6tm.es/shaare/qp2Hfg

  • TIL
  • Devops
  • Tool
  • Tip
  • Terminal
  • TIL
  • Devops
  • Tool
  • Tip
  • Terminal

For MacOS, run this command for Ghostty Terminal Emulator

find ~/Library/Application\ Support/com.mitchellh.ghostty ~/.config/ghostty 2>/dev/null | entr pkill -SIGUSR2 ghostty
  • source
  • man entr
Permalink
December 30, 2025 at 9:27:37 AM GMT+1
QRCode
archive.org

Comment utiliser la télécommande universelle Grundig ? (Dossier Complet) - Gazette du geekhttps://gazette-du-geek.fr/tv/telecommande-universelle-grundig/

  • Hardware
  • Config
  • TIL
  • Hardware
  • Config
  • TIL

Pour régler une télécommande universelle (5€ chez Action) pour une TV GRANDIN LD224GTB:

  • Allumez l’appareil
  • Appuyer sur "Set" jusqu'au clignotement (mode apprentissage)
  • Entrer Code Clé 0400
Permalink
November 14, 2025 at 3:53:44 PM GMT+1
QRCode
archive.org
Links per page
  • 20
  • 50
  • 100
Shaarli 96 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