Skip to content

Instantly share code, notes, and snippets.

View danielecr's full-sized avatar
🐢
stay quite

Daniele Cruciani danielecr

🐢
stay quite
View GitHub Profile
@mcastelino
mcastelino / iptables-cheatsheet.md
Last active June 25, 2025 14:45
iptables-cheatsheet

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@emilsoman
emilsoman / chain-of-responsibility.js
Created February 21, 2013 11:31
Chain of Responsibility design pattern in Javascript
//Chain of responsibility design pattern
//Use strategyPipeline.handleRequest(request)
//to send the request to be handled along the
//chain-of-responsibility
var strategyPipeline = {
handleRequest: function(request){
var strategy1 = new Strategy1();
var strategy2 = new Strategy2();