Skip to content

Instantly share code, notes, and snippets.

View bturrubiates's full-sized avatar

Ben Turrubiates bturrubiates

  • San Francisco Bay Area
View GitHub Profile
@bturrubiates
bturrubiates / 6perf.py
Created January 2, 2018 17:43
Script to run UDP/TCP testing with iperf in IPv4 and IPv6 mode.
#!/usr/bin/env python3
import subprocess
import threading
import itertools
import argparse
import shlex
import time
import re
@bturrubiates
bturrubiates / git-build-range
Last active December 12, 2017 19:45
Script to run a command on a range of commits.
#!/usr/bin/env zsh
###############################################################################
# Script to help test whether all commits build in a pull request.
# Example use:
#
# git build-range c907ec08 make -C /path/to/kernel M=$PWD
#
# This will start at c907ec08 and check every commit until HEAD using the given
# command.
@bturrubiates
bturrubiates / fi_usnic_info_alignment.md
Created October 10, 2016 21:02
alignments for the various versions of libfabric

Release 1.2

struct fi_usnic_info {
	uint32_t                   ui_version;           /*     0     4 */
	union {
		struct fi_usnic_info_v1 v1;              /*          36 */
	} ui;                                            /*     4    36 */

	/* size: 40, cachelines: 1, members: 2 */
@bturrubiates
bturrubiates / tx_behavior.c
Created August 16, 2016 00:11
weird behavior observed with tx/rx sizes
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <getopt.h>
#include <assert.h>
#include <stdbool.h>
#include <rdma/fabric.h>
#include <rdma/fi_domain.h>
@bturrubiates
bturrubiates / git-fzf-scripts.md
Created May 18, 2016 22:02
FZF scripts to browse a git repo

Browsing a Git repo with FZF

Place this code in a file somewhere in $PATH. I place it in a script called git-fbr-files. The script takes an old revision and a new revision and will show individual files changed. Select the file with FZF and hit enter to view a diff.

#!/usr/bin/env zsh

old="$1"
new="$2"

Keybase proof

I hereby claim:

  • I am bturrubiates on github.
  • I am bturrubiates (https://keybase.io/bturrubiates) on keybase.
  • I have a public key ASBbzjKn5f2yLqcEdM424ObAGCGoPwJj2UynYnGGnz2CtAo

To claim this, I am signing this object: