Skip to content

Instantly share code, notes, and snippets.

View kacole2's full-sized avatar

Kendrick Coleman kacole2

View GitHub Profile
@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: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 / 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 / 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
[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]:
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