Skip to content

Instantly share code, notes, and snippets.

@CookiePLMonster
CookiePLMonster / dinput-test.cpp
Created September 9, 2023 18:05
DirectInput 3-7 test app, for testing dinputto8
#include <Windows.h>
#include <iomanip>
#include <iostream>
#pragma comment(lib, "dxguid.lib")
#define DIRECTINPUT_VERSION 0x700
#include <dinput.h>
@agyild
agyild / FSR.glsl
Last active May 6, 2024 09:48
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 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
@RDCH106
RDCH106 / vc_versions_reference.md
Created November 24, 2021 15:01
Microsoft Visual C++ version Map
Product IDE version Solution version(s) Platform toolset _MSC_VER
Visual Studio 2022 17.0 ? v143 ?
Visual Studio 2019 16.0 ? v142 ?
Visual Studio 2017 15.0 12.0 v141 1910
Visual Studio 2015 14.0 12.0 v140 1900
Visual Studio 2013 12.0 12.0 v120 1800
Visual Studio 2012 11.0 12.0 v110 1700
Visual Studio 2010 10.0 11.0 v100 1600
Visual Studio 2008 9.0 10.0 v90 1500
@anadius
anadius / Origin Helper.user.js
Last active April 24, 2024 16:06
get download URL for your Origin games and generate Denuvo tokens
// ==UserScript==
// @name Origin Helper
// @author anadius
// @namespace anadius.hermietkreeft.site
// @homepageURL https://anadius.hermietkreeft.site/origin-helper
// @match *://www.ea.com/*
// @version 2.1.13
// @icon https://user-images.githubusercontent.com/8550471/187077252-2905e2dc-3241-4946-b1b3-f845a337d766.png
// @icon64 https://user-images.githubusercontent.com/8550471/187077254-476758f1-b784-45bf-a484-18d3ac704e44.png
// @grant GM.xmlHttpRequest
@CookiePLMonster
CookiePLMonster / repro.cpp
Last active September 16, 2020 13:23 — forked from riverar/repro.cpp
VS optimizer bug sample
#include <iostream>
#include <cmath>
// Sample of an optimizer bug in Visual Studio 2003 - 2019 (or more)
//
// Compiling this program in Release (/O1, /O2 or /Ox and LTCG) in both x86 and x64
// configurations produces a different output from unoptimized (Debug) configurations.
//
// Expected output: 709
// Produced output: 31
@rlaphoenix
rlaphoenix / why-you-shouldnt-use-triticals-tdecimate.md
Last active January 8, 2024 01:15
Why you shouldn't use Triticals TDecimate...

Why you shouldn't use Triticals TDecimate...

I need to clarify when I refer to TDecimate I'm referring to both TDecimate and VDecimate (which is a port of it to VapourSynth)

Time and time again I see people using this function to decimate for inverse-telecine purposes but I implore you to continue reading this and use an alternative decimation method.

Why? (tl;dr)

Simply put, it's far too inaccurate and it is ruining a lot of encodes.

How so?

@nevack
nevack / archived.md
Last active December 19, 2023 00:56
[ARCHIVED] Fix for CSR Dongle 0a12:0001 ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

This gist is currenctly archived.

Please refer to previous revisions if you know what to do.

The patch proposed was merged into kernel in 5.8 release, but no longer working as of linux 5.11

@PollyP
PollyP / intel_pintools_vs2019.md
Last active December 19, 2023 14:52
Building and Running Intel Pintools with VS 2019 on Windows 10
@xerpi
xerpi / PSVita_Linux_build_instructions.md
Last active April 1, 2024 12:51
PSVita Linux build instructions
@KunYi
KunYi / test.c
Created June 7, 2019 04:31
Note: Read/Write UEFI variables under Windows 7 and later
#include "stdafx.h"
void RasiePrivileges(void)
{
HANDLE hToken;
TOKEN_PRIVILEGES tkp;
if (!OpenProcessToken(GetCurrentProcess(),
TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,
&hToken)) {