Skip to content

Instantly share code, notes, and snippets.

@eugrus
eugrus / WikiDataMovieByActors.sparql
Created March 30, 2024 18:13
Search for movies on WikiData by the actors who played in them.
SELECT ?film ?filmLabel
WHERE {
?actor1 rdfs:label "Jennifer Aniston"@en.
?actor2 rdfs:label "Adam Sandler"@en.
?film wdt:P161 ?actor1, ?actor2.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
@eugrus
eugrus / newdoc.sh
Created March 6, 2024 14:36
Create a new document in LibreOffice Writer, using an existing one as a template.
libreoffice --writer --infilter="writer8_template" $1
| xxd -p -c1 | awk '{printf "\\x%s", $1}'
~/.wine
~/.local/share/PortWINE/PortProton/data/prefixes
~/.steam/steam/steamapps/compatdata
~/.PlayOnLinux/wineprefix
~/Games (Lutris)
@eugrus
eugrus / gist:2fe726ff0ec1d52d07795fe7d5e55468
Created January 18, 2024 21:06
glxinfo output on ThinkPad T440p with GK208M (GeForce GT 730M, rev a1) running Debian 12
name of display: :1
display: :1 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
@eugrus
eugrus / gist:d348c36d1d462b5df1bebf9ab5ead3b3
Created January 18, 2024 20:24
vulkaninfo output on ThinkPad T440p with GK208M (GeForce GT 730M, rev a1) running Debian 12
==========
VULKANINFO
==========
Vulkan Instance Version: 1.3.239
Instance Extensions: count = 20
===============================
VK_EXT_acquire_drm_display : extension revision 1
@eugrus
eugrus / 40-libinput.conf
Created January 16, 2024 23:28
/etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "MiddleEmulation" "true"
Option "DisableWhileTyping" "true"
EndSection
@eugrus
eugrus / cups.error_log
Created December 26, 2023 20:19
/var/log/cups/error_log
This file has been truncated, but you can view the full file.
D [26/Dec/2023:20:46:33 +0100] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [26/Dec/2023:20:46:33 +0100] [Client 13] Server address is "/run/cups/cups.sock".
D [26/Dec/2023:20:46:33 +0100] [Client 13] Accepted from localhost (Domain)
D [26/Dec/2023:20:46:33 +0100] [Client 13] Waiting for request.
I [26/Dec/2023:20:46:33 +0100] Expiring subscriptions...
D [26/Dec/2023:20:46:33 +0100] Report: clients=1
D [26/Dec/2023:20:46:33 +0100] Report: jobs=1
D [26/Dec/2023:20:46:33 +0100] Report: jobs-active=0
D [26/Dec/2023:20:46:33 +0100] Report: printers=1
D [26/Dec/2023:20:46:33 +0100] Report: stringpool-string-count=1119
xinput set-button-map "$(xinput list --name-only | grep 'Logitech Performance MX' | xargs -I {} xinput list --id-only {})" 1 2 3 4 5 6 7 8 9 10 11 12 2 14 15 16 17 18 19 20
rclone sync OneDrive: ~/OneDrive --config ~/.config/rclone/rclone.conf --daemon