Skip to content

Instantly share code, notes, and snippets.

View bugproof's full-sized avatar
🤕
burnt out, working on personal stuff

bugproof

🤕
burnt out, working on personal stuff
View GitHub Profile
This file has been truncated, but you can view the full file.
openapi: 3.0.0
servers:
- url: https://api.allegro.pl
variables:
environment:
default: allegro.pl
enum:
- allegro.pl # Production server
- allegro.pl.allegrosandbox.pl # Sandbox server
info:
  • Writing async runtime agnostic code is too hard and confusing rust-lang/wg-async#45 tokio is the standard then what's the point of async-std and other runtimes if 90% of crates use tokio?
  • Rust projects take a lot of space rust-lang/rust#66348
  • Linking with lld is not default and build times can be very slow rust-lang/rust#71520
  • Choosing the right http client library or http server library is hard considering there are 10 different crates for the job and most of them are using different async runtime. How can you be sure that the crate you choose will still be supported 3 years from now?
ABDetector
Events
RegisterActionButton
RegisterAB
UnregisterEvent
AND
ActionButton
RegisterActionButton2
RegisterAB2
UnregisterEvent2
@bugproof
bugproof / gist:0e289b74d8765ec393c039a793385116
Created August 1, 2020 18:08
Fix for 60hz lock when using DSR
https://www.pcgamingwiki.com/wiki/Glossary:Refresh_Rate_(Hz)#DirectX_registry_override
colors: {
white:"#ffffff",
black:"#000000",
gray:{"50":"#f8f9fa","100":"#f1f3f5","200":"#e9ecef","300":"#dee2e6","400":"#ced4da","500":"#adb5bd","600":"#868e96","700":"#495057","800":"#343a40","900":"#212529"},
red:{"50":"#fff5f5","100":"#ffe3e3","200":"#ffc9c9","300":"#ffa8a8","400":"#ff8787","500":"#ff6b6b","600":"#fa5252","700":"#f03e3e","800":"#e03131","900":"#c92a2a"},
pink:{"50":"#fff0f6","100":"#ffdeeb","200":"#fcc2d7","300":"#faa2c1","400":"#f783ac","500":"#f06595","600":"#e64980","700":"#d6336c","800":"#c2255c","900":"#a61e4d"},
grape:{"50":"#f8f0fc","100":"#f3d9fa","200":"#eebefa","300":"#e599f7","400":"#da77f2","500":"#cc5de8","600":"#be4bdb","700":"#ae3ec9","800":"#9c36b5","900":"#862e9c"},
violet:{"50":"#f3f0ff","100":"#e5dbff","200":"#d0bfff","300":"#b197fc","400":"#9775fa","500":"#845ef7","600":"#7950f2","700":"#7048e8","800":"#6741d9","900":"#5f3dc4"},
indigo:{"50":"#edf2ff","100":"#dbe4ff","200":"#bac8ff","300":"#91a7ff","400":"#748ffc","500":"#
@bugproof
bugproof / EnableDbgPrint.bat
Last active February 11, 2020 21:15
Enable DbgPrint() output in Vista/Server2008 and above https://stackoverflow.com/questions/12494300/no-output-from-debugview
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter" /V DEFAULT /t REG_DWORD /d 0xf
@bugproof
bugproof / Program.cs
Last active February 6, 2023 00:52
Reverse engineered spotify realtime player notifications https://user-images.githubusercontent.com/3116731/60773452-3ace8700-a106-11e9-9092-782aab26626a.png Works only with discord and official spotify access token (capture with chrome or firefox DevTools)
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Net.WebSockets;
using Websocket.Client;
using Newtonsoft.Json;
using System.Net.Http;
using System.Net.Http.Headers;
namespace SpotifyPlayerState
@bugproof
bugproof / Read-only dependency property (ReSharper and Rider snippet).txt
Last active June 11, 2019 16:42
Read-only dependency property WPF snippet
private static readonly $dependencyProperty$Key $propertyName$PropertyKey = $dependencyProperty$.RegisterReadOnly(
nameof($propertyName$), typeof($propertyType$), typeof($containingType$), new PropertyMetadata(default($propertyType$)));
public static readonly $dependencyProperty$ $propertyName$Property = $propertyName$PropertyKey.DependencyProperty;
public $propertyType$ $propertyName$
{
get => ($propertyType$) GetValue($propertyName$Property);
protected set => SetValue($propertyName$PropertyKey, value);
}
@bugproof
bugproof / what to use for desktop app.md
Last active March 7, 2020 15:55
What to use for desktop app

BEST