Skip to content

Instantly share code, notes, and snippets.

View fideliochan's full-sized avatar
💭
I may be slow to respond.

fideliochan

💭
I may be slow to respond.
View GitHub Profile
@Xyrem
Xyrem / NvidiaGPUSpoofer.c
Last active May 3, 2025 18:46
Nvidia GPU UUID randomizer
DriverInformation_t NVBase;
uint32_t UuidValidOffset = 0;
// Get nvlddmkm.sys information.
if (!Utils::GetDriverInformation(H("nvlddmkm.sys"), NVBase))
{
DBG("Could not find nvlddmkm.sys\n");
return 0;
}
@agyild
agyild / CAS-scaled.glsl
Last active April 2, 2025 08:21
AMD FidelityFX Contrast Adaptive Sharpening v1.0.2 for mpv
// 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
@TheDrHax
TheDrHax / autosave.lua
Last active April 5, 2025 20:38 — forked from Hakkin/autosave.lua
MPV script that periodically saves "watch later" data during playback
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60
@MineBartekSA
MineBartekSA / catbox
Last active May 10, 2025 18:29
CatBox - An implementation of catbox.moe API in Bash
#!/bin/bash
#
# CatBox v2.0
# An implementation of catbox.moe API in Bash
# Author: MineBartekSA
# Gist: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591
# Change log: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591?permalink_comment_id=4596132#gistcomment-4596132
#
# MIT License
#
@AO8
AO8 / isbn_lookup.py
Last active December 30, 2024 19:31
A simple ISBN lookup that uses Python and the Google Books API to display basic information about a book.
import urllib.request
import json
import textwrap
while True:
base_api_link = "https://www.googleapis.com/books/v1/volumes?q=isbn:"
user_input = input("Enter ISBN: ").strip()
with urllib.request.urlopen(base_api_link + user_input) as f:
@metzenseifner
metzenseifner / ldconfig-fix.sh
Last active February 2, 2025 12:49
Fix ldconfig "file is empty, not checked" error
# --overwrite '*' whereby * means every file path; reinstall everything otherwise you might get "exists in filesystem" errors
pacman -Syyu $(pacman -Qnq) --overwrite '*'
@igv
igv / adaptive-sharpen.glsl
Last active May 2, 2025 06:13
Optimal sharpening strength (according to objective metrics) - 0.5. Can be applied only to luma channel (change OUTPUT to LUMA). To use it on-demand add the following line to input.conf: n change-list glsl-shaders toggle "~~/adaptive-sharpen.glsl"
// Copyright (c) 2015-2021, bacondither
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer
// in this position and unchanged.
// 2. Redistributions in binary form must reproduce the above copyright