Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Hacking on Kubernetes Platform @ Zendesk

Adam Malcontenti-Wilson adammw

👨‍💻
Hacking on Kubernetes Platform @ Zendesk
View GitHub Profile
@adammw
adammw / main.swift
Created Jul 17, 2020
App to map next track button to input mute toggle
View main.swift
//
// main.swift
// mediakeymute
//
// Created by Adam Malcontenti-Wilson on 16/6/20.
// Copyright © 2020 Adam Malcontenti-Wilson.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
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'
View Keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@adammw
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 api.turnitin.com
var API_BASE = 'https://api.turnitin.com/';
var sessionId = 'REPLACE_ME';
var assignmentId = 'REPLACE_ME';
var rubricCriterion = {};
fetch(`${API_BASE}/assignment/${assignmentId}?&lang=en_us&output=json&session-id=${sessionId}`)
.then((resp) => { return resp.ok && resp.json() })
View dpif.md

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.

View blackboard_ws.py
# 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>
View vrep_sensor_test.java
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
You can’t perform that action at this time.