Skip to content

Instantly share code, notes, and snippets.

View nicolargo's full-sized avatar

Nicolas Hennion nicolargo

View GitHub Profile
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active November 10, 2024 05:28
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@samuel
samuel / kafka_simple_consumer.py
Created December 2, 2010 22:59
Simple consumer example in Jython for Kafka
#!/usr/bin/env jython
import os
import sys
sys.path.extend(["lib/"+x for x in os.listdir("lib") if x.endswith('.jar')])
sys.path.extend(["dist/"+x for x in os.listdir("dist") if x.endswith('.jar')])
import jarray
from kafka.api import FetchRequest
from kafka.consumer import SimpleConsumer