Skip to content

Instantly share code, notes, and snippets.

Hacking on Kubernetes Platform @ Zendesk

Adam Malcontenti-Wilson adammw

Hacking on Kubernetes Platform @ Zendesk
Block or report user

Report or block adammw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fluent_kinesis_plugin_test.rb
require 'aws-sdk-kinesis'
require 'fluent/output'
require 'fluent/test'
require 'fluent/test/driver/output'
require 'fluent/plugin/kinesis'
require 'fluent/plugin/kinesis_helper/aggregator'
require 'fluent/plugin/kinesis_helper/api'
require 'fluent/plugin/kinesis_helper/client'
require 'pry'

Keybase proof

I hereby claim:

  • I am adammw on github.
  • I am adammw ( on keybase.
  • I have a public key ASAj2QwCXw7NPU4w60wy73UWlJav6FHy84J7OcLpmYk6Hgo

To claim this, I am signing this object:

adammw / wifi_inject.c
Created Nov 1, 2016
WiFi raw packet injection
View wifi_inject.c
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/nl80211.h>
#include <linux/genetlink.h>
View extract_turnitin_grade_data.js
// Simple script to extract raw grade data from turnitin
// Replace the variables below and execute in a JS console on
var API_BASE = '';
var sessionId = 'REPLACE_ME';
var assignmentId = 'REPLACE_ME';
var rubricCriterion = {};
.then((resp) => { return resp.ok && resp.json() })

dpif, the DataPath InterFace.

In Open vSwitch terminology, a "datapath" is a flow-based software switch. A datapath has no intelligence of its own. Rather, it relies entirely on its client to set up flows. The datapath layer is core to the Open vSwitch software switch: one could say, without much exaggeration, that everything in ovs-vswitchd above dpif exists only to make the correct decisions interacting with dpif.

# Simple Blackboard Web Services Client
# Copyright (C) 2016, Adam Malcontenti-Wilson.
# Based on Blackboard Soap Web Services Python sample code, as licensed below
# Copyright (C) 2015, Blackboard Inc.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# -- Redistributions of source code must retain the above copyright
View raw_wifi_probe.c
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/nl80211.h>
#include <linux/genetlink.h>
import coppelia.CharWA;
import coppelia.FloatWA;
import coppelia.IntW;
import coppelia.remoteApi;
public class SensorTest
public static void main(String[] args)
// Establish VREP Connection
View gist:91aa8a982fd62532f24dc58168742e3d
DGND3700 Boot Code V1.0.8
CFE version 1.0.37-104.4 for BCM96368 (32bit,SP,BE)
Build Date: Mon Feb 21 17:59:46 CST 2011 (finerain@moonlight)
Copyright (C) 2000-2009 Broadcom Corporation.
Parallel flash device: name AM29LV320MT, id 0x2201 size 32768KB
Total Flash size: 32768K with 256 sectors
ethsw: found bcm53115!
Chip ID: BCM6368B2, MIPS: 400MHz
Main Thread: TP0
View google-chrome
if [ "`basename "$0"`" = "google-chrome-canary" ] || [ "$1" = "--canary" ]; then
exec "/Applications/Google Chrome Chrome Canary" --no-first-run "$@"
elif [ "`basename "$0"`" = "google-chrome" ]; then
exec "/Applications/Google Chrome" --no-first-run "$@"
You can’t perform that action at this time.