Skip to content

Instantly share code, notes, and snippets.

View shicky's full-sized avatar

Steve shicky

View GitHub Profile
@shicky
shicky / ld_preload_hook.c
Last active June 27, 2024 12:25
LD_PRELOAD linux function hook example
# helloworld.c
# gcc helloworld.c -o helloworld
#include <stdio.h>
#include <unistd.h>
int main() {
puts("Hello world!\n");
return 0;
}
@shicky
shicky / golang_coverage.md
Last active October 7, 2016 04:56
Generating coverage report for Golang

Generating golang coverage report

go test -cover -coverprofile=c.out
go tool cover -html=c.out