Skip to content

Instantly share code, notes, and snippets.

View shelterz's full-sized avatar
🎯
Focusing

ZhangCongjing shelterz

🎯
Focusing
  • Sinosdx
  • Shanghai
View GitHub Profile
@shelterz
shelterz / fanotify-example.c
Created April 12, 2019 08:20 — forked from jaypeche/fanotify-example.c
fanotify example
/*
* File: fanotify-example.c
* Date: Fri Nov 15 14:55:49 2013
* Author: Aleksander Morgado <aleksander@lanedo.com>
*
* A simple tester of fanotify in the Linux kernel.
*
* This program is released in the Public Domain.
*
* Compile with:
@shelterz
shelterz / ip_forward.md
Created May 24, 2019 05:42 — forked from tzermias/ip_forward.md
Forward traffic from wlan0 to eth0 interface

Forward traffic from a laptop's eth0 to wlan0

###To laptop

Specify an IP address to eth0 (here 192.168.56.1)

sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
@shelterz
shelterz / SSL-certs-OSX.md
Created September 5, 2019 09:02 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required: