- Packer
- QEMU
- Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define KBUILD_MODNAME "load_balancer" | |
#include <uapi/linux/bpf.h> | |
#include <linux/in.h> | |
#include <linux/if_ether.h> | |
#include <linux/if_packet.h> | |
#include <linux/if_vlan.h> | |
#include <linux/ip.h> | |
#include <linux/ipv6.h> | |
BPF_HASH(counter, uint32_t, long); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-ovf", | |
"source_path": "ubuntu-16.04-server-cloudimg-amd64.ova", | |
"vboxmanage": [ | |
["storageattach", "{{.Name}}", "--storagectl", "IDE", "--port", "0", "--device", "0", "--type", "dvddrive", "--medium", "files/cloud.iso"], | |
["modifyvm", "{{.Name}}", "--nic1", "nat" ], | |
["modifyvm", "{{.Name}}", "--uart1", "0x3F8", "4"], | |
["modifyvm", "{{.Name}}", "--uartmode1", "file", "console.log"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# This code is modified version of sslsniff. | |
# https://github.com/iovisor/bcc/blob/master/tools/sslsniff.py | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
from __future__ import print_function | |
import ctypes as ct | |
from bcc import BPF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export KUBERNETES_PROVIDER=vagrant | |
export KUBERNETES_MEMORY=2048 | |
export NUM_MINIONS=2 | |
export KUBE_LOGGING_DESTINATION=elasticsearch | |
export KUBE_ENABLE_CLUSTER_LOGGING=true | |
export KUBE_ENABLE_NODE_LOGGING=true | |
curl -sS https://get.k8s.io | bash | |
#cd kubernetes | |
#./cluster/kube-up.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "${CONTAINER}" = "1" ]; then | |
/usr/local/bin/python $@ | |
else | |
docker run \ | |
-it --rm \ | |
-v /:/host \ | |
-v /opt:/opt \ | |
-v /home:/home \ |
I hereby claim:
- I am summerwind on github.
- I am summerwind (https://keybase.io/summerwind) on keybase.
- I have a public key ASATIxoWXCkM5L81IMSEDYZcOcVMlBNCpH3_qNuQdkes_wo
To claim this, I am signing this object:
NewerOlder