Skip to content

Instantly share code, notes, and snippets.

View kevinlekiller's full-sized avatar
💭
I may be slow to respond.

kevinlekiller

💭
I may be slow to respond.
View GitHub Profile
@kevinlekiller
kevinlekiller / kasa-dimmer.sh
Last active January 4, 2023 03:41
Simple bash script to control TPLink Kasa dimmers (HS220 for example).
#!/bin/bash
# GNU GPLv2
# Simple bash script to control TPLink Kasa dimmers (HS220 for example).
# Turn on or off Kasa dimmer: KASA_HOST=192.168.1.2 ./dimmer
# Set brightness of the dimmer: KASA_HOST=192.168.1.2 ./dimmer [1-100]
KASA_HOST=${KASA_HOST:-192.168.1.144}
if ! which kasa &> /dev/null; then
echo "ERROR: The kasa executable is required, see https://github.com/python-kasa/python-kasa"
exit 1
@kevinlekiller
kevinlekiller / fonts.conf
Created December 24, 2022 15:55
Fix font aliasing on flatpak GTK programs under Plasma. Create directory, for example ~/.var/app/io.gitlab.librewolf-community/config/fontconfig then put this file in it.
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<its:rules version="1.0" xmlns:its="http://www.w3.org/2005/11/its">
<its:translateRule selector="/fontconfig/*[not(self::description)]" translate="no"/>
</its:rules>
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match target="font">
@kevinlekiller
kevinlekiller / interpolate.lua
Last active February 26, 2023 21:10
Mpv script to enable interpolation or force vrr.
--[[
Copyright (C) 2023 kevincs
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@kevinlekiller
kevinlekiller / sofalizer.lua
Last active October 15, 2025 03:31
Lua script for mpv to enable sofalizer, with sofa file inside of mpv's ~~/
--[[
Copyright (C) 2023 kevincs
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.