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 / apply_patch.sh
Last active May 31, 2018 21:30
Reduces the POP noise when switching outputs on the Asus Xonar Essence STX (ST also probably). Linux Kernel Patch.
#!/bin/bash
MAKE_FLAGS="-j8"
<<About
This script compiles the snd_oxygen_lib/snd_oxygen/snd_virtuoso modules with the patch in this gist and installs them.
You will need to rerun this every time you use a new kernel.
Tested on Arch Linux (Kernel 4.4).
Copyright (C) 2016 kevinlekiller
@kevinlekiller
kevinlekiller / dispcal.patch
Last active May 26, 2019 11:47
Patch for https://www.argyllcms.com/ dispcal to add 20 point grayscale RGB calibration (can be used for 10 point also).
--- Argyll_V2.1.1/spectro/dispcal.c 2019-04-29 12:33:26.000000000 -0400
+++ Argyll_V2.1.1_20point/spectro/dispcal.c 2019-05-26 07:40:16.662940045 -0400
@@ -3105,7 +3105,7 @@
int c;
/* Print the menue of adjustments */
- printf("\nPress 1 .. 7\n");
+ printf("\nPress 1 .. 7 or a .. u\n");
printf("1) Black level (CRT: Offset/Brightness)\n");
printf("2) White point (Color temperature, R,G,B, Gain/Contrast)\n");
@kevinlekiller
kevinlekiller / TamrielTradeCentre.lua
Last active September 28, 2019 16:28
HTTP data for TTC
TamrielTradeCentreVars =
{
["Default"] =
{
["@kevincsw"] =
{
["$AccountWide"] =
{
["EUData"] =
{
local http = require("socket.http")
require("TamrielTradeCentre")
if not TamrielTradeCentreVars["Default"] then
return
end
local serverEU = false
local gf = io.open("guilds.lua", "rb")
@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 / 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 / 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() {
@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 / 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 / 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