Skip to content

Instantly share code, notes, and snippets.

View morgabra's full-sized avatar

Brad Morgan morgabra

View GitHub Profile
from scapy.all import *
import time
import argparse
"""
tcpdump -XX -e -i bond0 -v arp
"""
ETH_HWDST = "ff:ff:ff:ff:ff:ff"
ETH_HWSRC = "a0:36:9f:2c:ea:30"

Keybase proof

I hereby claim:

  • I am morgabra on github.
  • I am morgabra (https://keybase.io/morgabra) on keybase.
  • I have a public key whose fingerprint is 53D3 E7B8 711F 91EB AB6F 82B3 2CD7 358E 64F4 1E3F

To claim this, I am signing this object:

@morgabra
morgabra / gist:5294277
Created April 2, 2013 17:31
Finding the ck node ID
0) Get the latest version of the update script from https://github.com/racker/rackspace_cloudmonitoring_migration_tool
1) Start a python shell with the migration script
~$ python migrate.py -c config.json shell
1) Print our your nodes
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
>>> import pprint
>>> class Test(list):
... def __getitem__(self, index):
... print index
...
>>> a = Test()
>>> a[1,2]
(1, 2)
<Hotkey ScrollLockOn Ctrl R>
<SendPC local>
<RenameWin "World of Warcraft" WoW1>
<RenameWin "World of Warcraft" WoW2>
//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------
<Command LaunchAndRename>
<SendPC %1%>
morgabra@ohproxy0:~$ curl -vv "http://10.180.140.56:4167/helen/797268/redis"
* About to connect() to 10.180.140.56 port 4167 (#0)
* Trying 10.180.140.56... connected
* Connected to 10.180.140.56 (10.180.140.56) port 4167 (#0)
> GET /helen/797268/redis HTTP/1.1
> User-Agent: curl/7.19.5 (x86_64-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15
> Host: 10.180.140.56:4167
> Accept: */*
>
< HTTP/1.1 200 OK