This file contains hidden or 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
| <?php | |
| // Copyright VMware, Inc. 2009-2010. All Rights Reserved. | |
| // example via http://communities.vmware.com/community/beta/vcloudsdkphp | |
| // get and power on a virtual machine | |
| require_once 'config.php'; // includes all needed libraries and parameters setting | |
| $service = VMware_VCloud_SDK_Service::getService(); | |
| $service->login ($server, $auth, $httpConfig); | |
| $orgRefs = $service->getOrgRefs(); //get references for vCloud organization entities | |
| $sdkOrg = $service->createSDKObj($orgRefs[0]); // create an SDK Org object | |
| $vdcRefs = $sdkOrg->getVdcRefs(); // get references to vCloud vDC entities |
This file contains hidden or 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
| # grab a copy | |
| [bradybunch]$ git clone git://github.com/petewarden/geodict.git | |
| Initialized empty Git repository in /Users/marsha/Marsha/marsha/geodict/.git/ | |
| remote: Counting objects: 21, done. | |
| remote: Compressing objects: 100% (20/20), done. | |
| remote: Total 21 (delta 4), reused 0 (delta 0) | |
| Receiving objects: 100% (21/21), 31.21 MiB | 1.28 MiB/s, done. | |
| Resolving deltas: 100% (4/4), done. |
This file contains hidden or 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"?><contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en"> | |
| <processingTime>0.000921</processingTime> | |
| <version> build 091119</version> | |
| <documentLength>11</documentLength> | |
| <document> | |
| <administrativeScope> | |
| <woeId>2360875</woeId> | |
| <type>Town</type> | |
| <name><![CDATA[Beaufort, NC, US]]></name> | |
| <centroid> |
This file contains hidden or 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
| [dudewheresmycar]$ curl http://wherein.yahooapis.com/v1/document \ | |
| > -d documentContent=Beaufort,NC \ | |
| > -d documentType=text/plain \ | |
| > -d appid=yOuNeedToGetYourOwn4pp1Dcuz |
This file contains hidden or 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
| # CommitBot | |
| # An interface for audibly broadcasting commit messages | |
| # Tested on OSX | |
| # Created by the friendly team at Hunch.com (sharing is caring!) | |
| # | |
| # Installation | |
| # 1. replace USERNAME, PASSWORD, and HOSTNAME below | |
| # 2. ... | |
| # 3. profit! |
This file contains hidden or 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
| image.setAttributeNS("http://www.w3.org/1999/xlink","href","http://bacolicious.s3.amazonaws.com/bacon.png") |
This file contains hidden or 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
| require 'open-uri' | |
| require 'digest/md5' | |
| # Get your external IP address from IP Chicken to send to the Quova service request URL below | |
| ip_address = (open("http://ipchicken.com") {|f|f.read.scan(/([0-9]{1,3}\.){3}[0-9]{1,3}/);$~}) | |
| # Your API credentials from http://developer.quova.com/apps/mykeys | |
| API_KEY = 'yougottagetyourownforthispartrighthere' | |
| SHARED_SECRET = 'yespleasegetyourown' |
This file contains hidden or 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"?> | |
| <ipinfo> | |
| <ip_address>209.118.159.2</ip_address> | |
| <ip_type>Mapped</ip_type> | |
| <Network> | |
| <organization>xo communications</organization> | |
| <carrier>xo communications</carrier> | |
| <asn>2828</asn> | |
| <connection_type/> | |
| <line_speed/> |
This file contains hidden or 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
| ##################################################################### | |
| # UCS_VMware_IMPI.ps1 v0.01 By: Justin Guidroz # | |
| # # | |
| # This script will connect to UCS Manager, collect IPMI information # | |
| # for the provisioned blades, and update the appropriate IPMI # | |
| # information on the ESX hosts. The script can also be run to # | |
| # update the IPMI information if a service profile is moved to a # | |
| # different blade. # | |
| # # | |
| ##################################################################### |
This file contains hidden or 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
| [macbookpro]$ cd Projects/ | |
| [macbookpro]$ git clone git://github.com/ivey/rss-to-notifo.git | |
| [macbookpro]$ cd rss-to-notifo/ | |
| [macbookpro]$ sudo gem update --system | |
| Password: | |
| Updating RubyGems | |
| Updating rubygems-update | |
| Successfully installed rubygems-update-1.3.7 | |
| Updating RubyGems to 1.3.7 | |
| Installing RubyGems 1.3.7 |