Skip to content

Instantly share code, notes, and snippets.

View RadNi's full-sized avatar
😁
Blub Blub

Amirhossein Khajehpour RadNi

😁
Blub Blub
View GitHub Profile
@RadNi
RadNi / crawler-project.js
Last active January 31, 2019 10:42
It is a simple crawler implemented with Node crawler package .
//require('events').EventEmitter.defaultMaxListeners = 0
var Crawler = require("crawler");
var baseURLS = ['http://www.google.com/','http://www.yahoo.com', 'http://www.amazon.com', 'http://www.sharif.ir/home'];
var depth = 3
var urls = new Set()
@RadNi
RadNi / lwnfs.c
Created January 10, 2019 20:09 — forked from prashants/lwnfs.c
Updated lwnfs
/*
* Demonstrate a trivial filesystem using libfs.
*
* Copyright 2002, 2003 Jonathan Corbet <corbet@lwn.net>
* This file may be redistributed under the terms of the GNU GPL.
*
* Chances are that this code will crash your system, delete your
* nethack high scores, and set your disk drives on fire. You have
* been warned.
@RadNi
RadNi / ssl_server_nonblock.c
Created July 21, 2018 19:39 — forked from darrenjs/ssl_server_nonblock.c
OpenSSL example using memory BIO with non-blocking socket IO
/*
This file had now been added to the git repo
https://github.com/darrenjs/openssl_examples
... which also includes a non blocking client example.
-------------------------------------------------------------------------------
ssl_server_nonblock.c -- Copyright 2017 Darren Smith -- MIT license