Skip to content

Instantly share code, notes, and snippets.

@lextra2
lextra2 / input.conf
Last active April 25, 2020 10:24
My mpv input.conf
WHEEL_UP add volume 5
WHEEL_DOWN add volume -5
LEFT seek -5 exact
RIGHT seek 5 exact
CTRL+LEFT frame-back-step ; show-text "${estimated-frame-number}/${estimated-frame-count}"
CTRL+RIGHT frame-step ; show-text "${estimated-frame-number}/${estimated-frame-count}"
SHIFT+LEFT playlist-prev ; show-text "${playlist-pos-1}/${playlist-count}"
@lextra2
lextra2 / mpv.conf
Last active May 4, 2020 05:48
My mpv.conf - constantly changing
[default]
# general
#glsl-shader="~~/FSRCNNX_x2_8-0-4-1.glsl"
#glsl-shader="~~/SSimDownscaler.glsl"
#glsl-shader="~~/SSimSuperRes.glsl"
#glsl-shader="~~/KrigBilateral.glsl"
#glsl-shader="~~/adaptive-sharpen.glsl"
#profile=gpu-hq
@lextra2
lextra2 / waifu2x.bat
Created July 20, 2019 20:03
Waifu2x.bat for https://github.com/nihui/waifu2x-ncnn-vulkan/releases version 20190712 - optimized for a 4GB GPU
waifu2x-ncnn-vulkan.exe -i input -o output -n 3 -s 2 -t 300 -j 1:2:2
@lextra2
lextra2 / CMD
Last active June 7, 2020 11:18
MPV 2020
(Requires d3dcompiler_43.dll to be in the same location)
To check for all available profiles:
mpv --profile=help
To check for presets of profile:
mpv --show-profile=<name>
e.g.
mpv --show-profile=gpu-hq
@lextra2
lextra2 / useful wildcards
Last active July 7, 2020 00:50
simple firefox css - hides some annoying things
* {
-moz-appearance: none !important;
border: none !important;
text-shadow: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
transition-duration: 1ms !important;
transition-delay: 1ms !important;
}
@lextra2
lextra2 / reddit.com.css
Last active October 21, 2020 09:26
reddit.com CSS
/* hides some elements */
#sr-header-area,
#header-img,
#RESAccountSwitcherIcon,
#NREMail.nohavemail,
.res-toggle-filterline-visibility,
.res-show-images,
.side,
.userkarma,
.footer-parent,
@lextra2
lextra2 / newest-ttv-css
Last active November 1, 2020 06:13
twitch.tv CSS
/* hides overlays - video player */
.passthrough-events {
display: none !important;
}
/* hides overlays - chat */
.new-chatter-ritual {
display: none !important;
}
K4Z80325BC - Samsung
1000 MHz
000000005E0C000000000000DA08000040000000101E0F092D000F0004040002100000000606060010000000110806000000010101000101001718003C0F00000A0A000078000000780000004A5156023C0000000C000A0A0F0400011F2A0C00780000004AF3130F7800000000000000
1250 MHz
000000007E000000000000006A090000400200001426130D3900130006060002140000000607070014000000218A06000000010101000101001B18000B1300000D0D000096000000960000004D5166024B0000000C000A0D130400011F2A0C00960000000AF4130F9600000000000000
1500 MHz
000000000F040000000000007A09000040030000162D170F4400170006060002180000000708080018000000210C07000000010101000101001C18009D1700000F0F0000B4000000B40000004F5178025A0000000C000A0F150500011F2A0C00B4000000CBF4130FB400000000000000
@lextra2
lextra2 / Capture Desktop
Last active August 3, 2022 14:54
Capture Desktop
ffmpeg -y \
-thread_queue_size 512 -f x11grab \
-s 1920x1080 -r 60 \
-i :0 \
-thread_queue_size 1024 -f pulse \
-i default \
-c:v libx264 -preset fast -b:v 10M -pix_fmt nv12 \
-c:a aac -b:a 320K \
output.mkv
@lextra2
lextra2 / 0-ubuntu
Last active August 7, 2022 22:10
Ubuntu Terminal Commands
gstreamer
https://askubuntu.com/a/1340796
~/.local/share/Steam/steamapps/common/Proton 7.0/dist/lib/wine/dxvk/d3d9.dll
Dxvk location
https://www.omgubuntu.co.uk/2022/07/nautilus-admin-open-file-as-root-ubuntu
to preview gtk themes:
thewidgetfactory / gtk3-widget-factory