HP Cloud cheatsheet

HP recently launched their public cloud computing services based on OpenStack. In this article we will details some tips & tricks to efficiently use their services with Opscode Chef. Install Chef and Knife Plugin for HP Cloud $ gem install chef $ gem install knife-hp gather information regarding your HP Cloud Account: Access Key ID, Secret Key, Tenant ID and Availability Zone (az1, az2 or az3) $ vi chef-repo/.chef/knife.rb #add the following lines knife[:hp_account_id] = "Your HP Cloud Access Key ID" knife[:hp_secret_key] = "Your HP Cloud Secret Key" knife[:hp_tenant_id] = "Your HP Cloud Tenant ID" knife[:hp_auth_uri] = "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens" knife[:hp_avl_zone] = "az1" #do not pass any Availability Zone if working with az3 or it won't work $ knife hp image list -VV [to test credentials] Install HP Fog, HP CLI & Setup account $ curl -sL https://docs.hpcloud.com/file/hpfog-0.0.17.gem >hpfog-0.0.17.gem $ gem install hpfog-0.0.17.gem $ curl -sL https://docs.hpcloud.com/file/hpcloud-1.2.0.gem >hpcloud-1.2.0.gem $ gem install hpcloud-1.2.0.gem $ hpcloud account:setup Create SSH key pairs $ ssh-keygen # generate .ssh/id_rsa and .ssh/id_rsa.pub [back them up !!!] Add keypair to HP Cloud paste public key to HP Cloud ...

November 14, 2012 · 2 min · planetrobbie

MultiMarkdown tips & tricks

MMD is an extension of a well known markup language extending Markdown. Syntax Emphasis *italic* **bold** ***bold italic*** Links <http://yet.org> Inline Links An [example](http://yet.org) Reference Links An [example][id] or [id] [id]: http://yet.org/ "Some Link" class=external style="border: solid black 1px;" Cross Reference ### Overview [Introduction] ## use it: [Introduction][] Inline Images (titles are optional) ![alt text](/path/img.jpg "Title") Reference-style Images ![alt text][id] [id]: /url/to/img.jpg "Title" width=40px height=400px Headers ...

October 29, 2012 · 6 min · planetrobbie

Git

Git is the cornerstone of software development. This article is my git cheatsheet. installation apt-get install git configuration [Anything can be set at three levels] config targets saves to scope --system /etc/gitconfig host --global ~/.gitconfig user --local .git/config repository Minimum configuration: % git config --global user.name "your name" % git config --global user.email "your email" % git config --global core.editor "vim" Querying all entries : % git config --list Querying one entry ...

October 26, 2012 · 6 min · planetrobbie