Skip to content

Instantly share code, notes, and snippets.

silvioprog silvioprog

Block or report user

Report or block silvioprog

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
silvioprog /
Last active Sep 5, 2019
Spell checking for git commit message using aspell(1).
# This file is distributed under Public domain.
# Author: silvioprog.
# Installing:
# - `$ mv .git/hooks/commit-msg`
# - `$ chmod +x .git/hooks/commit-msg`
silvioprog / cp1252_to_utf8.c
Last active Sep 6, 2019
Convert encoding of given string from CP1252 to UTF-8 in C using iconv(3).
View cp1252_to_utf8.c
/* Public domain */
/* Author: silvioprog */
Build and test:
$ gcc cp1252_to_utf8.c
$ ./a.out
A função atou() é incrível!
silvioprog / epoll_sock.c
Last active Sep 13, 2015 — forked from vndmtrx/epoll_sock.c
Socket não bloqueante com notificação de eventos usando epoll()
View epoll_sock.c
/* Copyright 2012 Eduardo Rolim
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
You can’t perform that action at this time.