sudo mount -o ro /dev/sdh2 /tmp/a
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Wednesday, September 23, 2026
mounting ntfs drive: wrong fs type, bad option, bad superblock on /dev/sdh2, missing codepage or helper program, or other error.
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
terminator: change size and location
terminator --geometry=2420x650+80+800
Labels:
Linux,
termiantor
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
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
https://aur.archlinux.org/packages/clipboard-sync
Friday, August 08, 2025
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
Labels:
claude code,
Linux
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
Linux: join pdf files into one file in a reverse order
pdftk $(ls -r *.pdf) output joined.pdf
Labels:
Linux
Thursday, March 27, 2025
Convert all pdf files to txt files
find . -name '*.pdf' -print0 | xargs -0 -n1 pdftotext
Labels:
Linux
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
Labels:
Linux
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
Labels:
Linux
Monday, March 07, 2022
Subscribe to:
Posts (Atom)