This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# usage: | |
# batch-fix-cbz.sh comic1.cbz [comic2.cbz ...] | |
# WARNING: overwrites original file | |
die() { | |
EXIT_CODE=$? | |
echo "$*" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Watch org.kde.KWin/ColorCorrect.PropertiesChanged signal and set OpenRGB profile accordingly | |
Author: Joshua Boudreau 2023 | |
# How to | |
1. Save nightmode_rgb.py anywhere (e.g. `/usr/local/bin`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Colorize stderr output for any bash script | |
# to use, put the following line at the top of your script (after the shebang): | |
# source <(curl -s https://gist.githubusercontent.com/joshuaboud/956991c04e45b211f40e6da84b2e049e/raw/colorize_stderr.sh) && exec 2> >(colour_errors >&2) | |
# or to avoid pulling remotely, copy the following functions into your script followed by: | |
# exec 2> >(colour_errors >&2) | |
print_red() { | |
printf "\e[31;1m$1\e[0m" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "InputClass" | |
Identifier "Logitech M570" | |
MatchProduct "Logitech M570" | |
Driver "libinput" | |
Option "ScrollMethod" "button" | |
Option "ScrollButton" "9" | |
Option "AccelProfile" "adaptive" | |
Option "AccelSpeed" "1" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ModalPrompt - A Custom Prompt Module for Cockpit Plugins. | |
Copyright (C) 2021 Josh Boudreau <[email protected]> | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the Lesser GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |