This file contains hidden or 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/env python | |
import netaddr | |
from fabric import api | |
from fabric.network import disconnect_all | |
USER = "ubuntu" | |
PASS = "ubuntu" | |
NETWORK = "172.16.0.0/12" | |
CMD = "uptime" |
This file contains hidden or 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
''' | |
(c) 2011, 2012 Georgia Tech Research Corporation | |
This source code is released under the New BSD license. Please see | |
http://wiki.quantsoftware.org/index.php?title=QSTK_License | |
for license details. | |
Created on March, 5, 2012 | |
@author: Sourabh Bajaj | |
@contact: [email protected] |
This file contains hidden or 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
# (c) 2011, 2012 Georgia Tech Research Corporation | |
# This source code is released under the New BSD license. Please see | |
# http://wiki.quantsoftware.org/index.php?title=QSTK_License | |
# for license details. | |
# | |
# Created on October <day>,2011 | |
# @author: Vishal Shekhar, Tucker Balch | |
# @contact: [email protected] | |
# @summary: Event Profiler Application | |
# |
This file contains hidden or 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
# (c) 2011, 2012 Georgia Tech Research Corporation | |
# This source code is released under the New BSD license. Please see | |
# http://wiki.quantsoftware.org/index.php?title=QSTK_License | |
# for license details. | |
# | |
# Created on October <day>,2011 | |
# @author: Vishal Shekhar, Tucker Balch | |
# @contact: [email protected] | |
# @summary: Event Profiler Application | |
# |
This file contains hidden or 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
import urllib2 | |
import time | |
ticker = 'BAC' | |
string_match = 'rel="alternate"' | |
url = 'http://www.sec.gov/cgi-bin/browse-edgar?company=&match=&CIK=%s&owner=exclude&Find=Find+Companies&action=getcompany' % ticker | |
response = urllib2.urlopen(url) | |
for line in response: | |
if string_match in line: | |
for element in line.split(';'): |
This file contains hidden or 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 | |
# | |
# ALBERT EINSTEIN'S RIDDLE | |
# | |
# ARE YOU IN THE TOP 2% OF INTELLIGENT PEOPLE IN THE WORLD? | |
# SOLVE THE RIDDLE AND FIND OUT. | |
# | |
# There are no tricks, just pure logic, so good luck and don't give up. | |
# | |
# 1. In a street there are five houses, painted five different colours. |
This file contains hidden or 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
class BroDnsParser < Parser | |
def parse( line ) | |
# Check if this is DNS A record Query: | |
m = line.split() | |
if m: | |
data = {:timestamp => m[0], | |
:uid => m[1], | |
:id_orig_h => m[2], |
This file contains hidden or 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
[21842.711624] INFO: task kvm:8138 blocked for more than 120 seconds. | |
[21842.719878] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. | |
[21842.730157] kvm D ffff8818361e4de0 0 8138 1 0x00000080 | |
[21842.730163] ffff880baa3e1c18 0000000000000086 000000000000001b ffff88187fc93ec0 | |
[21842.730169] ffff880baa3e1fd8 ffff880baa3e1fd8 ffff880baa3e1fd8 0000000000013ec0 | |
[21842.730173] ffff880c3d5aae80 ffff880b6e2a8000 ffff880baa3e1c08 ffff881829d8c918 | |
[21842.730178] Call Trace: | |
[21842.730191] [<ffffffff816f41c9>] schedule+0x29/0x70 | |
[21842.730238] [<ffffffffa01dca77>] xlog_wait+0x67/0x90 [xfs] | |
[21842.730245] [<ffffffff81092050>] ? try_to_wake_up+0x200/0x200 |
This file contains hidden or 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
BUG: soft lockup - CPU#1 stuck for 30s! [wget:2220] | |
[39108.799286] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat isofs ip_tables x_tables pcnet32 8139cp ne2k_pci 8390 e1000 acpiphp | |
[39108.799286] CPU 1 | |
[39108.799286] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat isofs ip_tables x_tables pcnet32 8139cp ne2k_pci 8390 e1000 acpiphp | |
[39108.799286] | |
[39108.799286] Pid: 2220, comm: wget Not tainted 3.2.0-37-virtual #58-Ubuntu OpenStack Foundation OpenStack Nova | |
[39108.799286] RIP: 0010:[<ffffffff816562d9>] [<ffffffff816562d9>] _raw_spin_unlock_irqrestore+0x19/0x30 | |
[39108.799286] RSP: 0018:ffff88000a803cf0 EFLAGS: 00000286 | |
[39108.799286] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000 | |
[39108.799286] RDX: 0000000000000004 RSI: 0000000000000286 RDI: 0000000000000286 |
This file contains hidden or 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
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Linux version 3.2.0-60-generic (buildd@toyol) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 (Ubuntu 3.2.0-60.91-generic 3.2.55) | |
[ 0.000000] Command line: reimage=192.168.100.5:25155/factory hosttype=CONTROLLER console=ttyS0,38400n8 console=tty0 elevator=deadline image_name=controller.img.gz root=/dev/sda1 syslog=192.168.100.5 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] BIOS-provided physical RAM map: | |
[ 0.000000] BIOS-e820: 0000000000000000 - 0000000000099800 (usable) |