Skip to content

Instantly share code, notes, and snippets.

Avatar

Georgi Boiko pandasauce

View GitHub Profile
@pandasauce
pandasauce / radiff2.log
Last active Sep 22, 2020
Chrome 75.0.3770.142 font rendering fix
View radiff2.log
# 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.
View xorist.c
#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];
View pointers.c
#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;
You can’t perform that action at this time.