Skip to content

Instantly share code, notes, and snippets.

View tumdum's full-sized avatar

tumdum tumdum

View GitHub Profile
@tumdum
tumdum / cgowalk.go
Last active September 26, 2016 20:37
Cost of stating files while walking linux kernel tree 4.7.5
package main
import (
"fmt"
"log"
"os"
"path/filepath"
"runtime/pprof"
)
@tumdum
tumdum / goregex-byte.go
Last active January 24, 2016 20:24
Cost of string
package main
import (
"bufio"
"flag"
"fmt"
"log"
"os"
"regexp"
"runtime/pprof"
@tumdum
tumdum / smbls.c
Created December 13, 2014 07:57
how to use smbclient
#include <samba-4.0/libsmbclient.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
void die(const char* format, ...)
{
va_list vl;