Skip to content

Instantly share code, notes, and snippets.

View pandasauce's full-sized avatar
🤡
this string contains a NULL b

Georgi Boiko pandasauce

🤡
this string contains a NULL b
View GitHub Profile
@pandasauce
pandasauce / radiff2.log
Last active September 22, 2020 14:22
Chrome 75.0.3770.142 font rendering fix
# 75.0.3770.142
0x04b58615 7626 => 9090 0x04b58615
0x04b5861d 31c0488945 => 9090909090 0x04b5861d
Due to a beautiful bug in Chromium, it turns out you don't need this binary patch and can **enable** subpixel positioning by asking Chrome **to disable it**: https://bugs.chromium.org/p/chromium/issues/detail?id=824153#c39
Needless to say, I won't be maintaining this gist any longer.
@pandasauce
pandasauce / xorist.c
Created July 19, 2017 20:36
Xorist 101
#include <stdio.h>
#include <memory.h>
#include <stdlib.h>
#define LENGTH 20
int main()
{
char const plainone[LENGTH] = "BASIC XOR CRYPTO";
char const plaintwo[LENGTH] = "WINKWINKWINKWINK";
char xor[LENGTH];
@pandasauce
pandasauce / pointers.c
Created July 19, 2017 20:30
Pointers 101
#include <stdio.h>
typedef unsigned char byte;
void printBytes(const char * tag, unsigned char * bytes, int length);
int main()
{
int original_variable = 100;
int * ptr_to_variable = &original_variable;
int resolved_variable = * ptr_to_variable;
long wrong_type_deref = * ptr_to_variable;