Skip to content

Instantly share code, notes, and snippets.

View amouat's full-sized avatar

Adrian Mouat amouat

View GitHub Profile
@amouat
amouat / fortify.c
Last active January 10, 2025 09:02
Exercising _FORTIFY_SOURCE in gcc (clang should work as well)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/*
* Simple test program for FORTIFY_SOURCE.
*
* Compile with the following to test with no source fortification and stack protection off:
* gcc -D_FORTIFY_SOURCE=0 -fno-stack-protector fortify.c -o fortify
*
@amouat
amouat / .conkyrc
Created January 6, 2012 20:11
Conky config for TODO system
#.conkyrc for TODOs
#
# Slightly modified version of basic config
#
# Adrian Mouat 2012
#
alignment top_right
background yes
border_width 1
default_color white