Skip to content

Instantly share code, notes, and snippets.

View nati's full-sized avatar

Nachi Ueno nati

View GitHub Profile
import pygame
import sys
import time
import random
error = pygame.init()
if error[1] > 0:
print error
sys.exit(-1)
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('-', '_'))
---
swagger: "2.0"
info:
version: "0.1"
title: "gohan API"
basePath: "/"
schemes:
- "http"
consumes:
- "application/json"
#!/bin/bash
# waitup
#
# A utility function for show notification when a server get ssh ready
#
# install:
# brew installterminal-notifier
#
# usage:
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"], [])
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)
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) {
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
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 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