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 | |
from scapy.all import sendp | |
from time import sleep | |
def main(): | |
count = 1 | |
while(1): | |
p = "\xc0\xff\xee\xffHello%d" % (count, ) |
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
header_type my_header_t { | |
fields { | |
a: 8; | |
b: 8; | |
} | |
} | |
header my_header_t header_a; | |
header my_header_t header_b; |
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
#include <stdio.h> | |
int main(int argc, const char *argv[]) { | |
char answer = (char)42; | |
printf("%c\n", answer); | |
return 0; | |
} |
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
Day 1 | |
H0 PostgreSQL 9.4 and Beyond | |
R1 PIME - 用 "Python" 快速開發 Windows 的中文輸入法 | |
H0 Beyond Visualization: Combo Skills with Open Source Projects | |
R2 立委哩公蝦 | |
R2 從 backbone 進化成 React | |
H0 Writing SASS Compiler in Go | |
R0 第一次自幹 Open Data SimCity 就上手 | |
R0 COSCUP charity auction / COSCUP 慈善拍賣會 |
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 | |
from mininet.net import Mininet | |
from mininet.node import Controller, RemoteController, OVSController | |
from mininet.node import CPULimitedHost, Host, Node | |
from mininet.node import OVSKernelSwitch, UserSwitch | |
from mininet.node import IVSSwitch | |
from mininet.cli import CLI | |
from mininet.log import setLogLevel, info | |
from mininet.link import TCLink, Intf |
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 | |
from mininet.net import Mininet | |
from mininet.node import Controller, RemoteController, OVSController | |
from mininet.node import CPULimitedHost, Host, Node | |
from mininet.node import OVSKernelSwitch, UserSwitch | |
from mininet.node import IVSSwitch | |
from mininet.cli import CLI | |
from mininet.log import setLogLevel, info | |
from mininet.link import TCLink, Intf |
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
import ast | |
from ryu.app import simple_switch | |
from ryu.lib.ip import ipv4_to_bin | |
from ryu.lib.mac import haddr_to_bin | |
from ryu.ofproto import ofproto_v1_0 | |
from webob import Response | |
from ryu.controller import ofp_event | |
from ryu.app.wsgi import ControllerBase, WSGIApplication, route | |
from ryu.controller.handler import CONFIG_DISPATCHER | |
from ryu.controller.handler import set_ev_cls |
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
from ryu.base import app_manager | |
from ryu.controller import ofp_event | |
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATCHER | |
from ryu.controller.handler import set_ev_cls | |
from ryu.ofproto import ofproto_v1_3 | |
from ryu.lib.packet import packet | |
from ryu.lib.packet import ethernet | |
from ryu.lib.packet import arp | |
from ryu.lib.packet import ipv4 | |
from collections import defaultdict |
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
if (*password != '') | |
{ | |
struct tm *timePtr; | |
time_t localTime; | |
char timeString[100]; | |
localTime = time(NULL); | |
timePtr = localtime(&localTime); | |
strftime(timeString, 100, "%D %r", timePtr); |
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
[ 967.200000] ls: page allocation failure: order:6, mode:0xd0 | |
[ 967.210000] CPU: 0 PID: 38 Comm: ls Not tainted 4.0.0-g21370f3-dirty #1 | |
[ 967.220000] Hardware name: STM32 (Device Tree Support) | |
[ 967.230000] [<08022e3d>] (unwind_backtrace) from [<080221df>] (show_stack+0xb/0xc) | |
[ 967.240000] [<080221df>] (show_stack) from [<0805023f>] (warn_alloc_failed+0x97/0xbc) | |
[ 967.250000] [<0805023f>] (warn_alloc_failed) from [<080516e1>] (__alloc_pages_nodemask+0x2c1/0x3c4) | |
[ 967.260000] [<080516e1>] (__alloc_pages_nodemask) from [<080517ef>] (__get_free_pages+0xb/0x24) | |
[ 967.270000] [<080517ef>] (__get_free_pages) from [<0805182b>] (alloc_pages_exact+0x19/0x24) | |
[ 967.270000] [<0805182b>] (alloc_pages_exact) from [<0805ab0d>] (do_mmap_pgoff+0x42d/0x5d4) | |
[ 967.280000] [<0805ab0d>] (do_mmap_pgoff) from [<08057439>] (vm_mmap_pgoff+0x3f/0x4e) |