Skip to content

Instantly share code, notes, and snippets.

View AnzenKodo's full-sized avatar
🦾
grinding hard

Aman Varma AnzenKodo

🦾
grinding hard
View GitHub Profile
@pedrominicz
pedrominicz / main.c
Created June 1, 2023 20:20
Create an OpenGL context using Xlib and EGL
#include <stdio.h>
#include <stdlib.h>
#include <EGL/egl.h>
#include <GL/gl.h>
#include <X11/Xlib.h>
static struct {
Display* display;
Window root_window;
@corehello
corehello / circle.c
Created September 1, 2016 05:43
draw a circle in c lang.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef struct {
size_t width;
size_t height;
unsigned char *data;
} Image;
@jrelo
jrelo / gcc-security.txt
Last active November 15, 2025 23:46
GCC security related flags reference.
Source material:
http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c
https://wiki.gentoo.org/wiki/Hardened_Gentoo
https://wiki.debian.org/Hardening
================================================================================================================>
GCC Security related flags and options:
CFLAGS="-fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-z,now -Wl,-z,relro"