Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, March 10, 2026

Start libreoffice in dark theme from distrobox on nix os through .desktop file

On Host, after exporting the libreoffice from distrobox, edit e.g. ~/.local/share/applications/abox-libreoffice-calc.desktop and add "env GTK_THEME=Adwaita:dark": Exec=env GTK_THEME=Adwaita:dark /run/current-system/sw/bin/distrobox-enter -n abox -- libreoffice --writer %U

Wednesday, February 25, 2026

Friday, January 09, 2026

ssh: LocalForward in ssh config file

Example to forward vnc 5901 port from server to client's 5903 port:
Host myserver
    HostName serverip
    User ubuntu
    IdentityFile ~/.ssh/private.pem
    LocalForward 5903 localhost:5901

Monday, December 15, 2025

lsblk: list model name of hard drive

lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL

Sunday, December 07, 2025

Wednesday, December 03, 2025

Saturday, November 29, 2025

Niri: share clipboard between Niri and Vnc

https://github.com/dnut/clipboard-sync
https://aur.archlinux.org/packages/clipboard-sync

Friday, August 08, 2025

pandoc: Word to markdown

pandoc input.docx -t markdown_strict -o output.md

Friday, August 01, 2025

Wednesday, July 30, 2025

Add Browser MCP to Claude Code

claude mcp add-json browsermcp '{ "type": "stdio", "command": "npx", "args": ["@browsermcp/mcp@latest"]}'
https://github.com/browsermcp/mcp

Wednesday, July 23, 2025

Linux: convert docx to markdown using pandoc

pandoc -f docx -t markdown_strict input.docx -o foo.md From: https://stackoverflow.com/a/33149947/248823

Thursday, June 19, 2025

Thursday, March 27, 2025

Convert all pdf files to txt files

find . -name '*.pdf' -print0 | xargs -0 -n1 pdftotext

Wednesday, November 27, 2024

Linux: ollama chagne default model location

Stop ollama sertice
Run systemctl edit ollama.service.
Add the line Environment="OLLAMA_MODELS=/path/to/new/location" under the [Service] section.
Save and exit the editor.
start ollama sertice

Wednesday, September 25, 2024

Joni pdf files into one file using pdftk

pdftk base.pdf 1.pdf 2.pdf 3*.pdf output joined.pdf

Friday, April 07, 2023

Monday, February 27, 2023

Linux: Copy all files from subdirectories into one folder

find zfiles/* -type f -mindepth 2 -print0 | xargs -0 cp -t ./sub1

Sunday, August 21, 2022

Linux: json to parquet

Use: https://github.com/domoritz/json2parquet ~/.cargo/bin/json2parquet -c zstd data_000000.json data_000000.parquet

Monday, March 07, 2022

qrencode: create pdf QR code

qrencode -s 6 -l H -o "URL.png" "https://some-url"