Skip to content

Instantly share code, notes, and snippets.

View tsangint's full-sized avatar

tsangint tsangint

View GitHub Profile
@reterVision
reterVision / epoll_sample.c
Last active March 29, 2024 02:07
A sample program of how epoll works.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/epoll.h>
#include <errno.h>
@rhoot
rhoot / rc4.coffee
Last active July 7, 2017 04:27
Node.js RC4 encryption/decryption
###
Copyright (c) 2012 rhoot <https://github.com/rhoot>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions: