Skip to content

Instantly share code, notes, and snippets.

View bplotnick's full-sized avatar

Ben Plotnick bplotnick

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bplotnick on github.
  • I am benplotnick (https://keybase.io/benplotnick) on keybase.
  • I have a public key whose fingerprint is D5BD 0626 FD90 A2AD A2A2 5656 9F69 24D0 C445 0F3A

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"listeners": [
{
"name": "service1.main_egress",
"address": "tcp://0.0.0.0:10000",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
void get_memusage_extra(uint64_t * uss, uint64_t * pss) {
FILE *file = fopen("/proc/self/smaps", "r");
char line [BUFSIZ];
while (fgets(line, sizeof line, file))