Skip to content

Instantly share code, notes, and snippets.

View Shengliang's full-sized avatar

Shengliang Song Shengliang

  • ByteDance
  • Fremont, CA
View GitHub Profile
@Shengliang
Shengliang / gdbinit
Created January 20, 2017 17:46 — forked from CocoaBeans/gdbinit
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net
@Shengliang
Shengliang / rxring.c
Created January 20, 2016 23:43 — forked from giannitedesco/rxring.c
TPACKET_V3 mmap packet sockets, showing off flexible frame sizes and multi-process hash fanout
/* Copyright (c) 2013 Gianni Tedesco
* Released under the terms of the GNU GPL version 3
* mmap() packet socket transmission
*/
#ifndef __linux__
#error "Are you loco? This is Linux only!"
#endif
#include <stdio.h>