Skip to content

Instantly share code, notes, and snippets.

View Spybull's full-sized avatar
💨
poof-poof-poof

spybull Spybull

💨
poof-poof-poof
View GitHub Profile
@javiermon
javiermon / LICENSE
Last active July 8, 2024 06:36
get default gateway
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
@simonhf
simonhf / cache-line-example.c
Last active February 1, 2024 23:30
Experiment with __builtin_prefetch()
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/time.h>
#include <locale.h>
#define NUMBYTES (1024*1024*1024)
char bytes[NUMBYTES];