Skip to content

Instantly share code, notes, and snippets.

Avatar
🤙

M. Hosseyn Najafi HosseyNJF

🤙
View GitHub Profile
@HosseyNJF
HosseyNJF / README.md
Last active January 13, 2023 08:27
Delete data from exported time-series from Prometheus / VictoriaMetrics in a time range.
View README.md

Usage

Note that the response cache must be deleted after these steps in order to remove previously cached results - see more details here.

@HosseyNJF
HosseyNJF / .xbindkeysrc
Created February 7, 2021 16:40
Ever wanted to switch workspaces with the buttons on the side of your mouse in Gnome? Here you are!
View .xbindkeysrc
"wmctrl -s $(( $(xdotool get_desktop) - 1 ))"
b:9
"wmctrl -s $(( $(xdotool get_desktop) + 1 ))"
b:8
"wmctrl -r :ACTIVE: -t $(( $(xdotool get_desktop) - 1 )) && wmctrl -s $(( $(xdotool get_desktop) - 1 ))"
shift + b:9
"wmctrl -r :ACTIVE: -t $(( $(xdotool get_desktop) + 1 )) && wmctrl -s $(( $(xdotool get_desktop) + 1 ))"