Skip to content

Instantly share code, notes, and snippets.

View retspen's full-sized avatar

Anatoliy Guskov retspen

View GitHub Profile
@retspen
retspen / dotool
Created February 18, 2026 11:10
dotool wrapper for ydotool – reliable paste with Non-US layouts (Wayland)
#!/usr/bin/env bash
set -euo pipefail
# Copy from pipe
wl-copy
# Get text from buffer
text="$(wl-paste)"
# Remove prefix "type " if it exist
@retspen
retspen / appimage.desktop
Created August 17, 2025 19:29
AppImage desktop file exaple
[Desktop Entry]
Name=AppImage
Exec=/home/user/AppImages/Application.AppImage
Icon=/home/user/.icons/appimage.png
Type=Application
Categories=Utility;
@retspen
retspen / chatgpt.desktop
Last active August 25, 2025 18:30
PWA desktop file example
[Desktop Entry]
Name=ChatGPT
Exec=chromium --new-window --app="https://chatgpt.com" --name="ChatGPT" --class="ChatGPT" --window-size=1200,800 --window-position=640,320
Terminal=false
Type=Application
Icon=/home/user/.icons/chatgpt.png
StartupNotify=true
@retspen
retspen / libvirt
Created December 9, 2017 07:33
Libvirt tips
# Command line for libvirt
<qemu:commandline>
<qemu:arg value='-drive'/>
<qemu:arg value='file=/var/lib/libvirt/centos.img,format=raw,if=none,id=drive-nvme-disk0'/>
<qemu:arg value='-device'/>
<qemu:arg value='nvme,id=drive-nvme-disk0,serial=serial0'/>
</qemu:commandline>
# IO tune
<disk type='file' device='disk'>