Sublime Text 2

Sublime Text 2 is one of the best editor for text, code, markup and prose which is available for $59 on OSX, Windows and Linux. This cheatsheet is based on the Tuts+ online training by Jeffrey Way an editor fanatic who tried them all : Coda, TextMate, Vim. Installation on Ubuntu or Elementary OS Sublime Text 3 is in the works, still in beta. In the meantime you can install version 2.0.2, from a terminal: ...

November 22, 2012 · 5 min · planetrobbie

nanoc

nanoc is a tool that runs on your local computer and compiles documents written in formats such as Markdown, Textile, Haml,… into a static web site consisting of simple HTML files, ready for uploading to any web server. Installation Start by installing the following dependencies # apt-get install ruby-dev zlib1g-dev libglib2.0-dev Continue on with all the required Gems. % gem install nanoc % gem install adsf # A Dead Simple Fileserver % gem install fssm # File System State Monitor % gem install kramdown # Markdown parser % gem install haml # HTML Abstraction Markup Language % gem install less # Invoke the Less CSS compiler from Ruby % gem install pygments.rb # Exposes the pygments syntax highlighter to Ruby % gem install coderay # Another Syntax Highlightter % gem install coderay_bash # Plugin to process Bash % gem install stringex # useful extensions to Ruby's String class % gem install nokogiri # Parser used by `nanoc validate-links` % gem install rainpress # A CSS compressor % gem install therubyracer # Call javascript code and manipulate javascript objects from ruby. % gem install rpeg-multimarkdown # MultiMarkdown processing used in a new Filter. (req. libgtk2.0-dev.) % gem install nanoc-guard # now replace nanoc watch command [see [docs](https://github.com/guard/guard-nanoc)] Create a web site create yet subdirectory with a blank web site ...

November 21, 2012 · 9 min · planetrobbie

Elementary

Elementary is a new initiative to create an Operating Sytem with an emphasis on elegance. Elementary team have a commitment to a particular toolkit (GTK+) and support a preferred programming language (Vala). They’ve created an application development framework (Granite) and other developer tools that are designed to help developers build apps specifically for this platform. Current Luna Beta 1 version is based on Ubuntu 12.04 LTS (Precise Pangolin). ...

November 19, 2012 · 8 min · planetrobbie

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

OpenStack Cloud Architecture

Cheatsheet created from Cybera blog. Recommended Hardware 2 x 10gb Nics 2 x CPU Cores 1 GB RAM 6 x 1 TB drives Partitionning of the first four drives Partition Size Type Partition 1 300 mb Linux RAID Partition 2 20 gb Linux RAID Partition 3 900 gb Linux RAID Remaining two drives Partition Size Type Partition 1 300 mb Linux RAID Partition 2 20 gb Linux Swap Partition 3 900 gb Linux RAID NOTE:: Similar partitions are grouped together to form RAID arrays. Grouping depends on node role (see below) ...

November 12, 2012 · 2 min · planetrobbie

Automating OpenStack with Private Chef at DreamHost

Notes following up a webinar with Matt Ray from Opscode and Carl Perry, Cloud Architect at Dreamhost. Presenters Matt Ray - Senior Technical Evangelist @ Opscode Carl Perry - Cloud Architect @ DreamHost 42 slides should be available on the mailing list Chef for OpenStack soon OpenStack Mission Statement Apache 2 license provides all the feature to run Private or Public Cloud regardless of size massively scalable compatibility with Amazon or other clouds HP CLoud, RackSpace are using it but let’s talk about DreamHost today Why OpenStack Control: Open source, no vendor lock in. (Apache 2 license) Flexibility: Modular design integrates legacy and 3rd party technology Emerging Industry Standard: more then 180 technology leaders back it and major cloud built on it Proven Compatible and Connected: Enables portability OpenStack Components Nova VMs runs on top of KVM Xen LHC Hyper-V and more Cinder (used to be called nova-volume) Block storage for the VM similar to EBS from Amazon drivers for Nexenta, NetApp, … Quantum new project released with Folsom SDN technology sits on the network layer handles management and configuration of the VM networking DreamHost use Nicira Glance Image Registry Source of the VMs that runs under Nova Keystone Common authentication layer check for crendentials and provides token that are passed around could be token-based, AWS, LDAP or other forms Swift Original Rackspace Cloud Files object store that came from RackSpace DreamHost use Ceph instead Horizon self-service role-based web interface for users and administrators provision cloud based resources Ceph Saige Weil PhD project now spined off to Inktank Next generation distributed storage runs on commodity hardware Raw Block, RESTful object storage service, Filesystem (in pre-release) Ceph Components Ceph Monitor: Maintain map of current cluster health Ceph OSD: Manages a single physical storage volume (1 OSD per hard drive but 1 OSD per RAID volume could be done too) Everything is broken in 4 MB objects Ceph RESTful RADOS Gateway: Provides SWIFT or S3 compatible RESTful Object Storage API Ceph Metadata Server: Provides distributed POSIX layer for filesystem (only needed for POSIX Filesystem service) Components all run in user space (no kernel modifications required) DreamObjects - DreamHost Ceph offering Nics will be upgraded to 10G to avoid Nic bonding to gain management simplicity 3 replicas per object at DreamObjects it is all the time consistent !!! Each write is acknowledged. ...

November 8, 2012 · 7 min · planetrobbie

Crowbar

Crowbar is an Open Source solution to quickly provision new services from bare metal servers. Introduction Project initiated at Dell by Rob Hirschfeld and Greg Althaus It was originally built on top of Chef, Opscode Configuration Management Solution but is currently evolving as an agnostic solution to support other configuration management tools like Puppet. Crowbar includes a Ruby on Rails application to easily customize your environment. Crowbar currently support Ruby 1.9.3 with RVM About Crowbar 2 Crowbar2 is actively developed, the objective is to refactor Crowbar. Objectives: Make it easier, safer, faster and more productive to use simplify use of Chef and eliminate Crowbar requirements in our Opscode Chef recipes multiple versions of the same OS running for upgrades Moving to a database, Chef isn’t any more the primary DB for Crowbar objects. It will improve scalability. Moving to Rails 3 Big disk support (enabling UEFI booting in Sledgehammer, will allow drives above 2 TB) Read-on to get more in-depth details about the roadmap to Crowbar 2. ...

November 5, 2012 · 3 min · planetrobbie

Ceph Workshop

I’ve attended the first Ceph Workshop in Amsterdam, Nov 2, 2012, with all the Ceph gurus, Sage Weil, Wildo den Hollander, Ross Turk, Gregory Farnum presenting this outstanding distributed storage technology. I’m sharing with you my notes. Keynote by Wildo den Hollander 42on (@widoth) partners of the first ever workshop day inktank - the founders providing services & support contributed 90% of ceph code 42on spinoff of European company which now focus on Ceph Dell gave gears for Demo facilities Why Ceph ? World of storage is changing everyday, now storing Petabytes of data How to store it is a lot of work Do we use proprietary systems ? How do we scale ? Does that fit in our budget Use Ceph Fully distributed without any SPoF Scales with you into the Petabytes Runs on commodity hardware Keynote by Sage Weil (@liewegas, sage@inktank.com) First ever Ceph day Unified Distributed System Why you should care diverse storage needs object storage block devices (for VMs) with snapshots, cloning shared file system with POSIX, coherent caches structured data: files, block devices, or objects ? scale terabytes, petabytes, exabytes heterogeneous hardware time ease of admin no manual data migration, load balancing painless scaling expansion and contraction seamless integration cost linear function of size, of performance incremental expansion no fork lift upgrades no vendor lock-in choice of hardware and software open What is it, what it’s for It’s a storage system that stores: Objects native API or RESTful API Blocks thin provisioning snapshots layering/cloning Files strong consistency, snapshots It’s a distributed storage system that scale from 10s to 10 000 of machines terabytes to exabytes Which is fault tolerant - no SPoF how it works - architecture - ceph object model ...

November 5, 2012 · 21 min · planetrobbie