Skip to content

Instantly share code, notes, and snippets.

View ralphschuler's full-sized avatar

Ralph Schuler ralphschuler

View GitHub Profile
@voltmtr
voltmtr / lumasharpen.glsl
Last active July 11, 2023 00:25
usage: add post-shaders=~/config_directory/lumasharpen.glsl to your vo=opengl/opengl-hq config
// vim: set ft=glsl:
/*
LumaSharpen 1.4.1
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.
@voltmtr
voltmtr / LumaSharpenHook.glsl
Last active June 21, 2024 08:29
usage: vo=opengl-hq:user-shaders="~/config_directory/LumaSharpenHook.glsl"
// vim: set ft=glsl:
/*
LumaSharpenHook 0.3
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.
@voltmtr
voltmtr / 0001-vo_opengl-Super-xBR-add-antiring-and-offset-bias-sub.patch
Created May 11, 2016 16:12
Super-xBR tweakable antiringing patch for mpv
From e7acb9ce6e1785b2c2166ddad9705fea779e3e14 Mon Sep 17 00:00:00 2001
From: example <example@example.com>
Date: Mon, 9 May 2016 17:23:50 +0300
Subject: [PATCH] vo_opengl: Super-xBR: add antiring and offset-bias suboptions
Add Hyllian's tweakable antiringing algorithm. superxbr-antiring
suboption can be between 0.0 and 1.0 (default=0). Add offset-bias
setting to tweak how Super-xBR is applied, setting this to lower values
can help with having thinner edges.
superxbr-offset-bias suboption can be between 0.01 and 1.0
@aaronsteers
aaronsteers / AIDungeon.ipynb
Created December 14, 2019 01:28
AI Dungeon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class BetterMap<k, v> extends Map<k, v> {
update(key:k, updater: (v:v, k:k) => v, notset:v = undefined) {
if(this.has(key)) this.set(key, updater(this.get(key), key))
else this.set(key, notset)
}
filter(predicate: (v:v, k:k) => boolean) {
const newMap = new BetterMap<k, v>()
const entries = Array.from(this.entries())
for(const [key, value] of entries) {
@CSaratakij
CSaratakij / README.txt
Last active June 5, 2024 16:26
Video Wallpaper (hw-accelerate) : Use 'mpv' as a video player backend with 'xwinwrap' to wrap our window to be use as a desktop background
You want to use a live wallpaper in x11?
Great!!...but It come as a cost.
I did experiment with .gif backend and non hardware accelerate backend, It sucks.
CPU usage was so high (40% up just for idle), unacceptable for my laptop.
Running with those backend for such a really long time will slowly turn your laptop into the hot potato.
But don't be upset, we can reduce those cost.
Using the video player with hardware video decoding support can reduce the cost.
@carlware
carlware / how to use
Last active May 31, 2024 04:04
proxychains and tor (change ip ~10 seconds)
# install
sudo apt-get install proxychains
sudo apt-get install tor
# then update the files /etc/proxychains.conf and /etc/tor/torrc with the given config
# restart tor server
sudo service restart tor
@johndpope
johndpope / zooming-vqgan-clip-z-quantize-method-with-additions.ipynb
Created July 31, 2021 04:09 — forked from chigozienri/notebook.ipynb
Zooming VQGAN+CLIP (z+quantize method with additions).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SergioRibera
SergioRibera / wallpaper.sh
Last active April 12, 2024 20:49
This script allow set image or video as background on linux, specially for WM's
#!/bin/bash
#
# author: Sergio Ribera
# github: @SergioRibera
#
set -e
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"