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
package { | |
repository community { | |
components main | |
distribution stable | |
url http://packages.vyatta.com/vyatta | |
} | |
repository jaist { | |
components main | |
distribution squeeze | |
url http://ftp.jaist.ac.jp/pub/Linux/Debian |
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
#!/bin/sh | |
# Start/Stop the lispd of lispmob daemon. | |
# | |
NAME=lispd | |
DAEMON=/usr/local/sbin/lispd | |
CONFIG=/etc/lispd.conf | |
PIDFILE=/var/run/lispd.pid | |
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
package { | |
repository jaist { | |
components main | |
distribution squeeze | |
url http://ftp.jaist.ac.jp/pub/Linux/Debian | |
} | |
repository pacifica { | |
components main |
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
def xmltodict (node) : | |
def _xmltodict (node) : | |
if len (node) > 0: | |
dic = {} | |
for child in node : | |
[key, value] = _xmltodict (child) | |
if dic.has_key (key) : | |
if isinstance (dic[key], list) : | |
dic[key].append (value) |
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
#!/bin/bash | |
# pktgen.conf -- Sample configuration for send | |
modprobe pktgen | |
DEVICE=$1 | |
PKTLEN=$2 | |
if [ -z $DEVICE ]; then | |
echo "$0 [IFNAME]" |
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/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Remote VMware ESX 5.1 Control Commands | |
# Requires | |
# - sshpass | |
# - VMware-ovf-tools | |
# | |
import re |
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
int | |
strsplit (char * str, char ** args, int max) | |
{ | |
int argc; | |
char * c; | |
for (argc = 0, c = str; *c == ' '; c++); | |
while (*c && argc < max) { | |
args[argc++] = c; | |
while (*c && *c > ' ') c++; |
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
ovs-vsctl add-br ovsbr0 | |
ip netns list | |
ip netns add ns0 | |
ip netns add ns1 | |
ip link add name veth0a type veth peer name veth0b | |
ip link add name veth1a type veth peer name veth1b | |
ip link set dev veth0b netns ns0 | |
ip link set dev veth1b netns ns1 | |
ip netns exec ns0 ifconfig lo up | |
ip netns exec ns1 ifconfig lo up |
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
MIT License | |
Copyright (c) 2021 Ryo Nakamura | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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/env python | |
import sys | |
import json | |
from neutronclient.v2_0 import client as neutronclient | |
authurl = 'http://10.0.2.15:5000/v2.0' | |
username = 'demo' | |
password = 'pass' | |
tenantname = 'demo' |
OlderNewer