Skip to content

Instantly share code, notes, and snippets.

@hushi55
hushi55 / jprobe_etn_io.c
Created December 28, 2017 09:35 — forked from dzeban/jprobe_etn_io.c
jprobes example
/*
* Here's a sample kernel module showing the use of jprobes to dump
* the arguments of third-party network driver for Bercut ETN.
*
* For more information on theory of operation of jprobes, see
* Documentation/kprobes.txt
*
* Build and insert the kernel module as done in the kprobe example.
* You will see the trace data in /var/log/messages and on the
* console whenever do_fork() is invoked to create a new process.
@hushi55
hushi55 / Git-Cheatsheets.md
Created September 15, 2017 07:33 — forked from nerdalert/Git-Cheatsheets.md
Git Cheat Sheets

Git Cheat Sheets and Examples


@hushi55
hushi55 / Netfilter-IPTables-Diagrams.md
Created September 15, 2017 07:31 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

@hushi55
hushi55 / gist:678f546655724d628a8354c0219be197
Created June 4, 2016 08:33 — forked from ilguzin/gist:6606011
How to convert Java Key Store file to pem/key for nginx
1. Convert our ".jks" file to ".p12" (PKCS12 key store format):
keytool -importkeystore -srckeystore oldkeystore.jks -destkeystore newkeystore.p12 -deststoretype PKCS12
1.1. List new keystore file contents:
keytool -deststoretype PKCS12 -keystore newkeystore.p12 -list
2. Extract pem (certificate) from ".p12" keysotre file:
@hushi55
hushi55 / kafka.md
Created March 24, 2016 10:15 — forked from lurenx/kafka.md
kafka introduction

Introduction to Kafka

Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.

Terminology:

  • Producers send messages to brokers
  • Consumers read messages from brokers
  • Messages are sent to a topic