Skip to content

Instantly share code, notes, and snippets.

View 5c077yP's full-sized avatar

Alexander Springer 5c077yP

View GitHub Profile
@5c077yP
5c077yP / ixgbevf-upgrade.sh
Last active August 29, 2015 14:27 — forked from vdm/ixgbevf-upgrade.sh
ixgbevf 2.16.1 upgrade for AWS EC2 SR-IOV "Enhanced Networking" on Ubuntu 14.04 (Trusty) LTS
#!/usr/bin/env bash
set -e
set -o pipefail
# globals
readonly VERSION='2.16.1'
readonly DOWNLOAD_URL='http://sourceforge.net/projects/e1000/files/ixgbevf%20stable/2.16.1/ixgbevf-2.16.1.tar.gz'
readonly INSTALL_DIR='/usr/src' # must be here for dkms
@5c077yP
5c077yP / tcpLoadBalancer.js
Created November 22, 2014 07:53
Simple NodeJS TCP Load Balancer
/* jslint node: true, ass: false, plusplus: true, sloppy: true, indent: 2
*
* A Simple TCP (Round Robin) Load Balancer.
*/
var net = require('net');
var port = 2333; // Listen port
var hosts = [
{ host: '127.0.0.1', port: 2033 },