Skip to content

Instantly share code, notes, and snippets.

Felipe F. Tonello ftonello

Block or report user

Report or block ftonello

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ftonello / url-shortner.c
Last active Nov 3, 2018
URL shortner implementation in C. This is just an example how it could be implemented. Ideally the lookup table should be pre-generated and not hardcoded.
View url-shortner.c
* Author: Felipe Ferreri Tonello <>
* This url-shortner it only works with ASCII characters. It encodes and
* decodes ids.
* You can change base_x as you wish.
* It runs at least 20 times faster then a Python implementation.
* $ time python -s I7
View swap.c
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
static long long int ts_us()
struct timeval tv;
struct timezone tz;
View 0001-blog-hello-world.c.patch
From f376831f690d3907c26acf20f2829c6a83ec8437 Mon Sep 17 00:00:00 2001
From: "Felipe F. Tonello" <>
Date: Wed, 2 Dec 2015 15:32:47 +0000
Subject: [PATCH] blog: hello-world.c
Signed-off-by: Felipe F. Tonello <>
drivers/Kconfig | 2 ++
drivers/Makefile | 1 +
drivers/hello/Kconfig | 5 +++++
You can’t perform that action at this time.