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 pygame | |
import sys | |
import time | |
import random | |
error = pygame.init() | |
if error[1] > 0: | |
print error | |
sys.exit(-1) |
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 getopt | |
import pycassa | |
import subprocess | |
import sys | |
from pycassa.pool import ConnectionPool | |
from pycassa.columnfamily import ColumnFamily | |
def query_typename(column, typename): | |
data = column.get(typename.replace('-', '_')) |
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
--- | |
swagger: "2.0" | |
info: | |
version: "0.1" | |
title: "gohan API" | |
basePath: "/" | |
schemes: | |
- "http" | |
consumes: | |
- "application/json" |
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 | |
# waitup | |
# | |
# A utility function for show notification when a server get ssh ready | |
# | |
# install: | |
# brew installterminal-notifier | |
# | |
# usage: |
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
root@vagrant:/opt/contrail# cat /etc/lsb-release | |
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=14.04 | |
DISTRIB_CODENAME=trusty | |
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" | |
root@vagrant:/opt/contrail# scons test | |
scons: Reading SConscript files ... | |
scons: done reading SConscript files. | |
scons: Building targets ... | |
BuildInfoAction(["build/debug/config/common/buildinfo.py"], []) |
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
nueno-mbp:contrail-go-api[list_mock]$ go get -u github.com/golang/lint/golint | |
nueno-mbp:contrail-go-api[list_mock]$ golint | |
client.go:36:6: exported type Authenticator should have comment or be unexported | |
client.go:40:6: exported type NopAuthenticator should have comment or be unexported | |
client.go:43:1: exported method NopAuthenticator.AddAuthentication should have comment or be unexported | |
client.go:48:6: type ApiClient should be APIClient | |
client.go:58:32: don't use underscores in Go names; interface method parameter parent_id should be parentID | |
client.go:60:38: don't use underscores in Go names; interface method parameter parent_id should be parentID | |
client.go:63:1: comment on exported type Client should be of the form "Client ..." (with optional leading article) | |
client.go:71:1: comment on exported type ListResult should be of the form "ListResult ..." (with optional leading article) |
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
ZSchema.registerFormat("yaml", function (str) { | |
return true; | |
}); | |
ZSchema.registerFormat("javascript", function (str) { | |
return true; | |
}); | |
ZSchema.registerFormat("jsonschema", function (str) { | |
return true; | |
}); | |
ZSchema.registerFormat("uuid", function (str) { |
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
01/22/2014 02:01:18 PM [SandeshUVE]: Add uve <default-domain:demo:devstack-ServerOne-opzmlqr22tsp-FrontendNetwork-4rnfxdtic7ze, 91> in the [UveVirtualNetworkConfigTrace] map | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run | |
result = self._run(*self.args, **self.kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/schema_transformer/to_bgp.py", line 2856, in launch_arc | |
raise e | |
HttpError: HTTP Status: 500 Content: <class 'vnc_addr_mgmt.AddrMgmtSubnetUndefined'> | |
Python 2.7.4: /usr/bin/python | |
Wed Jan 22 14:01:19 2014 |
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
ifconfig -a | |
ip route | |
arp -a | |
/opt/stack/contrail/build/debug/vrouter/utils/vif -b | |
/opt/stack/contrail/build/debug/vrouter/utils/nh -b | |
/opt/stack/contrail/build/debug/vrouter/utils/rt -b -v 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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet static | |
address 216.69.95.61 |
NewerOlder