Skip to content

Instantly share code, notes, and snippets.

View kacole2's full-sized avatar

Kendrick Coleman kacole2

View GitHub Profile
GET https://vcd-cell01.kendrickcoleman.c0m/api/admin/network/128d6a99-519d-4afd-a733-2534817082df
<?xml version="1.0" encoding="UTF-8"?>
<ExternalNetwork xmlns="http://www.vmware.com/vcloud/v1.5" name="50 VLAN" id="urn:vcloud:network:128d6a99-519d-4afd-a733-2534817082df" type="application/vnd.vmware.admin.vmwexternalnet+xml" href="https://vcd-cell01.kendrickcoleman.c0m/api/admin/network/128d6a99-519d-4afd-a733-2534817082df" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://192.168.50.55/api/v1.5/schema/master.xsd">
<Link rel="repair" type="application/vnd.vmware.admin.network+xml" href="https://vcd-cell01.kendrickcoleman.c0m/api/admin/network/128d6a99-519d-4afd-a733-2534817082df/action/reset"/>
<Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://vcd-cell01.kendrickcoleman.c0m/api/admin/network/128d6a99-519d-4afd-a733-2534817082df/metadata"/>
<Link rel="down" type="application/vnd.vmware.vcloud.allocatedNetworkAddres
[email protected]: WARNING: Stackato redundant config permission: cloud_controller_ng /max_user_drains
[email protected]: WARNING: Stackato redundant config permission: harbor_node /host_external
[email protected]:
[email protected]: WARNING: Stackato redundant config permission: harbor_node /hostname_external
[email protected]: WARN Stackato redundant config updater: _update__dea_ng__timeouts
[email protected]:
[email protected]: WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
[email protected]:
[email protected]: Deprecated: Use -s or --insert-seed flag
[email protected]:
@kacole2
kacole2 / ViewActiveSessionCount.ps1
Last active August 29, 2015 14:03
VMware View Active Session Count using PowerCLI
#Add the VMware View powershell snapin
Add-PSsnapin VMware.View.Broker
#Set the connection broker to check. This isn't used since the commands are run locally
$ConnectionServer = "localhost"
#For loggin create a timestamp
$TimeStamp = Get-Date -format yyyy-MM-dd-H-mm
#grab an array of remote sessions
@kacole2
kacole2 / vipr_ruby_example.rb
Last active August 29, 2015 14:04
ViPR Ruby Example
#find out more at kendrickcoleman.com
require 'rubygems'
require 'rest-client'
require 'json'
def vipr_session(viprurl, username, password)
vipr_session_link = RestClient::Resource.new(viprurl + '/login', username, password )
vipr_session_response = vipr_session_link.get
myvar = 'x_sds_auth_token'
@kacole2
kacole2 / gist:6760f396dc0af381c025
Last active August 29, 2015 14:08
phonegap Google Maps iOS build fail
//Initial install following directions
coleman-mbp:newmap4 kcoleman$ cordova plugin rm com.googlemaps.ios
The plugin 'com.googlemaps.ios' is required by (plugin.google.maps), skipping uninstallation.
kcoleman-mbp:newmap4 kcoleman$ cordova plugin add https://github.com/wf9a5m75/googlemaps-ios-sdk-for-phonegap
Fetching plugin "https://github.com/wf9a5m75/googlemaps-ios-sdk-for-phonegap" via git clone
cp: dest file already exists: /Users/kcoleman/Documents/Aptana Studio 3 Workspace/newmap4/plugins/com.googlemaps.ios/CHANGELOG
Installing "com.googlemaps.ios" for android
Plugin "com.googlemaps.ios" already installed on ios.
@kacole2
kacole2 / gist:9935f59a7c9b64ae4fc3
Created October 30, 2014 15:44
ios googlemaps phonegap error2
//Error after copying GoogleMaps.bundle
...skipping lines
CompileC build/newmap4.build/Debug-iphonesimulator/newmap4.build/Objects-normal/i386/R9HTTPRequest.o newmap4/Plugins/plugin.http.request/HttpRequest/R9HTTPRequest/R9HTTPRequest.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/kcoleman/Documents/Aptana Studio 3 Workspace/newmap4/platforms/ios"
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/kcoleman/.rvm/gems/ruby-2.1.2/bin:/Users/kcoleman/.rvm/gems/ruby-2.1.2@global/bin:/Users/kcoleman/.rvm/rubies/ruby-2.1.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/kcoleman/.rvm/bin:/Users/kcoleman/Library/android-sdk-macosx/tools:/Users/kcoleman/Library/android-sdk-macosx/platform-tools"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -a
@kacole2
kacole2 / gist:34bf2a5ad24d4af9c519
Created October 30, 2014 15:51
ios phonegap google maps error 3
CompileC build/newmap4.build/Debug-iphonesimulator/newmap4.build/Objects-normal/i386/External.o newmap4/Plugins/plugin.google.maps/External.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Users/kcoleman/Documents/Aptana Studio 3 Workspace/newmap4/platforms/ios"
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/kcoleman/.rvm/gems/ruby-2.1.2/bin:/Users/kcoleman/.rvm/gems/ruby-2.1.2@global/bin:/Users/kcoleman/.rvm/rubies/ruby-2.1.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/kcoleman/.rvm/bin:/Users/kcoleman/Library/android-sdk-macosx/tools:/Users/kcoleman/Library/android-sdk-macosx/platform-tools"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=202 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -f
@kacole2
kacole2 / gist:7031da2b1305e6bd3c25
Created October 30, 2014 15:55
ios phonegap google maps error 4
kcoleman-mbp:newmap4 kcoleman$ phonegap run ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/kcoleman/Documents/Aptana Studio 3 Workspace/newmap4/platforms/ios/build/emulator
SDKROOT = iphonesimulator8.1
VALID_ARCHS = i386
@kacole2
kacole2 / gist:b7d7c521f1c09a6c9686
Created October 30, 2014 20:30
phonegap/cordova build ios failure [entire log]
coleman-mbp:Aptana Studio 3 Workspace kcoleman$ phonegap create newmap5 com.kendrickcoleman.newmap5 newmap5
[phonegap] missing library com.kendrickcoleman.newmap5/www/3.6.0
[phonegap] downloading https://github.com/phonegap/phonegap-app-hello-world/archive/3.6.0.tar.gz...
[phonegap] create called with the options /Users/kcoleman/Documents/Aptana Studio 3 Workspace/newmap5 com.kendrickcoleman.newmap5 newmap5
[phonegap] Customizing default config.xml file
[phonegap] created project at /Users/kcoleman/Documents/Aptana Studio 3 Workspace/newmap5
kcoleman-mbp:Aptana Studio 3 Workspace kcoleman$ cd newmap5/
kcoleman-mbp:newmap5 kcoleman$ cordova build ios
No platforms added to this project. Please use `cordova platform add <platform>`.
kcoleman-mbp:newmap5 kcoleman$ phonegap build ios
@kacole2
kacole2 / CSS
Created November 3, 2014 13:42
Phonegap Cordova Geolocation with Google Maps Javascript API v3
* {
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}
html, body {
width: 100%;
height: 100%;
padding-top: 10%;
}