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 / sofalizer.lua
Last active March 4, 2024 20:06
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.
@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 / 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 / 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 / run.sh
Last active September 13, 2022 13:33
Download RuneScape 3 launcher and sandbox it with firejail, with vkBasalt on top.
#!/bin/bash
# GPLv2
# Start like this to update RuneScape launcher: UPDATE_RUNESCAPE=1 ./run.sh
#--------------------------------------------
WD=$(realpath "$(dirname "$0")")
runescape=$(realpath "$WD/runescape")
UPDATE_RUNESCAPE=${UPDATE_RUNESCAPE:-0}
if [[ ! $UPDATE_RUNESCAPE -eq 0 ]]; then
rm -f "$runescape"
@kevinlekiller
kevinlekiller / a.sh
Last active February 18, 2023 06:11
Starting GW2 overlays on Steam with Proton. Set as Steam launch option for GW2. Change -provider Steam to -provider Portal if you use a Anet account. Change the 60 seconds of sleep to something lower if your computer is fast (you want to be in game before Buritto or Blish start).
# Burrito overlay, put burrito_link.exe and burrito.x86_64 in the game folder.
echo -e "@echo off\nstart burrito_link.exe\nstart Gw2-64.exe -provider Steam\nexit" > gw2.bat; echo -e "DXVK_ASYNC=1 MANGOHUD=1 $(echo %command% | sed "s/Guild Wars 2\/Gw2-64\.exe.*$/\"Guild Wars 2\"\/gw2.bat/") &\nsleep 60\nchmod u+x burrito.x86_64\n./burrito.x86_64" > gw2.sh; sh gw2.sh
# Blish HUD, put the Blish.HUD folder in the game directory.
BHDIR=$(realpath "$(find -iname "Blish.HUD*")"); rm -f BlishHUD; ln -s "$BHDIR" BlishHUD; rm -f BlishHUD/BlishHUD.exe; ln -s "$BHDIR/Blish HUD.exe" BlishHUD/BlishHUD.exe; echo -e "@echo off\nstart Gw2-64.exe -provider Steam -autologin\nping -n 60 127.0.0.1>nul\ncd BlishHUD\nstart BlishHUD.exe\nexit" > gw2.bat; DXVK_ASYNC=1 MANGOHUD=1 eval $(echo %command% | sed "s/Guild Wars 2\/Gw2-64\.exe.*$/\"Guild Wars 2\"\/gw2.bat/")
@kevinlekiller
kevinlekiller / CAS.glsl
Created February 8, 2022 03:38 — forked from agyild/CAS-scaled.glsl
AMD's Contrast Adaptive Sharpening filter ported to mpv along with ReShade modifications
// LICENSE
// =======
// Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
// -------
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
// modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
// -------
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
@kevinlekiller
kevinlekiller / MMPX.fx
Created June 30, 2021 21:11 — forked from martymcmodding/MMPX.fx
McGuire & Mara, MMPX Style-Preserving Pixel Art Magnification, port to ReShade
/*
Copyright 2020 Morgan McGuire & Mara Gagiu.
Provided under the Open Source MIT license https://opensource.org/licenses/MIT
by Morgan McGuire and Mara Gagiu.
*/
/*=============================================================================
ReShade 4 effect file
github.com/martymcmodding
@kevinlekiller
kevinlekiller / CMAA2.fx
Created June 30, 2021 21:11 — forked from martymcmodding/CMAA2.fx
CMAA 2 for ReShade
/*=============================================================================
ReShade 4 effect file
github.com/martymcmodding
Rough port of CMAA2 to ReShade by Pascal Gilcher
I do not claim any copyright to any of the work used in this product
CMAA2 (Copyright (c) 2018, Intel Corporation) is licensed under
http://www.apache.org/licenses/LICENSE-2.0
@kevinlekiller
kevinlekiller / simplelog.io_mass_enable_mailboxes.user.js
Last active July 23, 2022 18:07
Mass enable all mailboxes for aliases on the current page on simplelogin.io ; use with an addon like Violentmonkey
// ==UserScript==
// @name simplelogin.io mass enable mailboxes
// @namespace kevinlekiller/simplelogin.io
// @include https://app.simplelogin.io/*
// @version 1.1
// @description Mass enable all mailboxes for aliases on the current page on simplelogin.io
// @licence gpl-3.0 https://www.gnu.org/licenses/gpl-3.0.html
// @author kevinlekiller
// ==/UserScript==
async function mass_enable() {