Skip to content

Instantly share code, notes, and snippets.

View dguitarbite's full-sized avatar

Pranav Salunke dguitarbite

View GitHub Profile
# On Controller node
$ tcpdump -envi eth0 | grep -i gre
$ tcpdump -envi br-int
$ tcpdump -envi br-tun
$ ip netns exec qrouter-d72adddf-4c02-4916-ae6d-16bfdaf59d99 tcpdump -nn -i qr-63ea2815-b5 icmp
$ ip netns exec qrouter-d72adddf-4c02-4916-ae6d-16bfdaf59d99 tcpdump -nn -i qg-e7110dba-a9 icmp
$ tcpdump -envi 192.168.122.163
$ tcpdump -envi br-ex
$ tcpdump -i eth0 -n arp or icmp
@dguitarbite
dguitarbite / terrain.py
Created February 15, 2013 22:18 — forked from fdb/terrain.py
# Terrain generation based on noise.
# The terrain is a simple line grid.
# Noise generation using Casey Duncan's noise library:
# http://pypi.python.org/pypi/noise/1.0b1
# Use WASD to move through the scene
# Use Q and E to move up/down
# Use the mouse to look in the view
# Use the arrow keys to offset the noise grid
@dguitarbite
dguitarbite / gist:3777542
Created September 24, 2012 18:40 — forked from eriwen/gist:187610
Pythonic site monitor
#!/usr/bin/env python
# sample usage: checksites.py eriwen.com nixtutor.com yoursite.org
import pickle, os, sys, logging
from httplib import HTTPConnection, socket
from smtplib import SMTP
def email_alert(message, status):
fromaddr = 'you@gmail.com'