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 | |
import collections | |
import optparse | |
import os | |
import sys | |
import urllib | |
ROOT_WSDL_FILE = 'vimService.wsdl' | |
WSDL_FILES = frozenset([ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<schema targetNamespace="urn:reflect" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
</schema> |
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
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/vimService.wsdl | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/vim.wsdl | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/core-types.xsd | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/query-messagetypes.xsd | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/query-types.xsd | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/reflect-messagetypes.xsd | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/reflect-types.xsd | |
$ wget --no-check-certificate https://$VMWAREAPI_IP/sdk/vim-messagetypes.xsd |
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
2013-08-09 19:12:36.184 CRITICAL nova [-] imported schema (urn:reflect) at (https://192.168.14.22/sdk/reflect-messagetypes.xsd), failed | |
2013-08-09 19:12:36.184 TRACE nova Traceback (most recent call last): | |
2013-08-09 19:12:36.184 TRACE nova File "/usr/local/bin/nova-compute", line 10, in <module> | |
2013-08-09 19:12:36.184 TRACE nova sys.exit(main()) | |
2013-08-09 19:12:36.184 TRACE nova File "/opt/stack/nova/nova/cmd/compute.py", line 68, in main | |
2013-08-09 19:12:36.184 TRACE nova db_allowed=False) | |
2013-08-09 19:12:36.184 TRACE nova File "/opt/stack/nova/nova/service.py", line 260, in create | |
2013-08-09 19:12:36.184 TRACE nova db_allowed=db_allowed) | |
2013-08-09 19:12:36.184 TRACE nova File "/opt/stack/nova/nova/service.py", line 142, in __init__ | |
2013-08-09 19:12:36.184 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs) |
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
void trustAllSSL() { | |
def trustAllTrustManager = [ | |
checkClientTrusted: { chain, authType -> }, | |
checkServerTrusted: { chain, authType -> }, | |
getAcceptedIssuers: { null } | |
] | |
def trustAllHostnameVerifier = [ | |
verify: { hostname, session -> true } | |
] |
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
File mirrorWsdl(URL firstUrl, File dest) { | |
assert firstUrl.getText(), "Can't read from ${firstUrl} " | |
assert dest.mkdir() || dest.exists() && dest.isDirectory(), "Can't read/write to directory ${dest}" | |
def file = firstUrl.getFile() | |
def parentPath = file.substring(0,file.lastIndexOf('/') + 1) | |
def files = [:] | |
def urls = [firstUrl] | |
while(urls) { | |
URL url = urls.pop() | |
def path = url.getFile() |
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 | |
# My MacBook Pro's bluetooth transmitter will sometimes get into an error state where it will not | |
# connect to my bluetooth headset without a reboot. This seems to happen when I walk out of range | |
# with the device on. | |
# | |
# This script stops and starts the bluetooth daemon itself effectively restarting the bluetooth | |
# services. NOTE: bluetooth must be turned off in the UI when you do this. It's clumsy but it | |
# beats rebooting. | |
# Note: edited to add a kick to the audio daemon that often gets confused if switching between sources. |
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 | |
# relies on the conventions: | |
# 1. all tools go into ~/tools | |
# 2. all tools are configured with a 'current' symlink for | |
# the currently in-use version | |
# 3. all tools have a 'bin' directory | |
# for example: to upgrade from grails 1.3.6 to 1.3.7 | |
# $ cd ~/tools/grails | |
# $ rm current |
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 | |
# which programs do you want to install into your path? | |
programs=( groovy grails gradle scala ) | |
# relies on the conventions: | |
# 1. all tools go into ~/tools | |
# 2. all tools are configured with a 'current' symlink for | |
# the currently in-use version | |
# 3. all tools have a 'bin' directory |
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
1. delete old project | |
2. create fresh project | |
3. Emulator now launches | |
4. get new trace... | |
[INFO] Launching Android emulator...one moment | |
[INFO] Building com.example.test.Groosfabas for Android ... one moment | |
[INFO] Titanium SDK version: 1.6.0 (02/07/11 19:30 49c5b13...) | |
[INFO] Waiting for the Android Emulator to become available | |
[ERROR] Timed out waiting for android.process.acore | |
[INFO] Copying project resources.. |