Skip to content

Instantly share code, notes, and snippets.

@agyild
agyild / NVScaler.glsl
Last active March 20, 2026 02:49
NVIDIA Image Scaling v1.0.2 for mpv
// The MIT License(MIT)
//
// Copyright(c) 2022 NVIDIA CORPORATION & AFFILIATES. 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 :
@piegamesde
piegamesde / dnc.desktop
Created April 2, 2020 14:20
Create a secondary chromium instance to keep all your messengers separate.
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=DNC
StartupWMClass=dnc
GenericName=Definitely not chrome
Comment=All your messages
Exec=bash -c '/bin/chromium --class="dnc" --user-data-dir="$HOME/.config/chromium-not"'
StartupNotify=true
Terminal=false
#EXTM3U
#EXTINF:0,1 (18+) .
http://hls-v3-spbtv.msk.spbtv.com/for_spb/msk/ipv3/257.m3u8
#EXTINF:0,1 Music Channel
http://stream.1music.hu/stream/1music.m3u8
#EXTINF:0,1+1 .
http://kv-3ln-n01.ollcdn.net/hls-tv/18/128147972228ef43d29d88c5490c0005/5ca630d7/oneplusone/oneplusone.m3u8
#EXTINF:0,1-й Республиканский
http://dprtv.phoenix-dnr.ru/first-republic-tv
#EXTINF:0,100 automoto.TV
@Jabarabo
Jabarabo / githubpull.md
Last active May 1, 2026 02:22
Gist of a stolen gist
@s3rgeym
s3rgeym / Arch-Install-SED-Luks-Btrfs.md
Last active April 28, 2026 03:10
Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

image

Вся суть харча™ (на самом деле все далеко не так...)

Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

@bjin
bjin / acme-0.5x.hook
Last active March 28, 2026 14:59
simple 0.5x prescaler for mpv, best combined with "--cscale=bilinear --scaler-resizes-only --window-scale=0.5"
//!DESC acme-0.5x
//!HOOK LUMA
//!BIND HOOKED
//!WIDTH HOOKED.w 2 /
//!HEIGHT HOOKED.h 2 /
//!WHEN HOOKED.w 2 % ! HOOKED.h 2 % ! *
//!OFFSET 0.25 0.25
vec4 hook() {
return HOOKED_texOff(vec2(-0.25,-0.25));
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
/**
* Set the WM_CLASS property of a window specified by it's ID
* Usage: set_wm_class <window id> <window class> <application name>
* Compile with: gcc set_wm_class.c -lX11 -o set_wm_class
@ErikAugust
ErikAugust / spectre.c
Last active October 7, 2025 15:37
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@viliampucik
viliampucik / mpv.conf
Last active October 17, 2025 22:06
MPV YouTube
ytdl-format=bestvideo[ext=mp4][height<=1080]+bestaudio/best[ext=mp4]/best
@saitoha
saitoha / rxvt-unicode-sixel.patch
Last active May 2, 2019 10:17
Add SIXEL graphics support for rxvt-unicode.
diff --git a/src/Makefile.in b/src/Makefile.in
index 18acb39e..ef2e7a40 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -40,7 +40,7 @@ COMMON = \
screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \
scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \
rxvttoolkit.o rxvtutil.o keyboard.o rxvtimg.o \
- ev_cpp.o fdpass_wrapper.o ptytty_wrapper.o @PERL_O@
+ ev_cpp.o fdpass_wrapper.o ptytty_wrapper.o sixel.o @PERL_O@