Archive for development

[just.few.tuts] golang ~ get local changes into GOPATH without pushing them upstream

Posted in AbhishekKr, Blogroll, tutorial with tags , , , , on March 4, 2014 by abhishekkr [3/Feb/2014]

To get your local Golang repo’s sym-linked at your GOPATH and local changes available…

  if [ $# -ne 2 ]; then
    echo "Links up current dir to it's go-get location in GOPATH"
    echo "SYNTAX: goenv_linkme  "
    return 1

  cd $_REPO_DIR

  if [ -d "${GOPATH}/src/${_REPO_URL}" ]; then
    echo "$_REPO_URL already exists at GOPATH $GOPATH"
    go get "${_REPO_URL}"
    return 1
  _REPO_BASEDIR=$(dirname "${GOPATH}/src/${_REPO_URL}")
  if [ ! -d "${_REPO_BASEDIR}" ]; then
    mkdir -p "${_REPO_BASEDIR}/src"

  ln -sf "${PWD}" "${GOPATH}/src/${_REPO_URL}"
  go get "${_REPO_URL}"

  cd $_TMP_PWD

alias goenv_linkme="goenv_link $PWD"

…read full blogpost here

[just.few.tuts] Beginner’s Guide to OpenStack : Basics of Nova #Part.2

Posted in Blogroll, tutorial with tags , , , , , , , , , , , , on April 30, 2013 by abhishekkr []

parts of Beginner’s Guide to OpenStack to read before this ~
Part1: Basics

[Part.2 Basics of Nova] Beginner’s Guide to OpenStack

# Nova?
It’s the main fabric controller for IaaS providing Cloud Computing Service by OpenStack. Took its first baby steps in NASA. Contributed to OpenSource and became most important component of OpenStack.
It built of multiple components performing…..

# Components?
Nova stores states of virtual machines in a central database. It’s optimal for…..

# API Style
Interface is mostly RESTful. Routes (python re-implementation of Rails route system) packagesmaps URIs to…..

# Threading Model
Uses Green Thread implementation by design using eventlet and greenlet libraries. This results into single process thread for O.S. with it’s blocking I/O issues. Though…..

# Filtering Scheduler
In short it’s the mechanism used by ‘nova-scheduler’ to choose the worthy nova-compute host for new required virtual machine to be spawned upon. It prepare…..

# Message Queue Usage
Nova components use RPC to communicate each other via Message Broker using PubSub. Nova implements (request/response, API acts as consumer) and rpc.cast (one way, API acts as publisher)…..


…click here to read full post

[just.few.tuts] Get Set Go Lang ~ part#1

Posted in AbhishekKr, Blogroll, tutorial with tags , , , , , , on July 10, 2012 by abhishekkr [6/June/2012]

What Is Go Lang?
(in case you just came here while curious web surfing)

Go is an OpenSource programming platform developed by Google (andcontributors) to be expressive and efficient at the same point.
It’s distributed under BSD-style License
It’s a concurrency favoring, statically typed, compiler-based language. Though it declares to be giving ease like dynamically typed interpreted code.

On your mark, Get Set GO
(getting started with the quick boost usage)

To directly start playing with Go Lang, visit,
where you can directly type/paste in your go-lang code in an online editor and run to get output.


Rewind before the Start Line and take your First Leap
(first useful step to starting use of Go Lang)

[] quickie at variables and constants, a look at GO’s declaration style…..

[] mobilizing functions…..
[] some function parameters style, the pow above is same as…..
[] function returning multiple values…..

[] more to go….. in more to come_________________________Shops to Go
(other fine links to Go, until next part of this tutorial comes)…..

… here to read full post

[justfewtuts] Basics of Powershell ~ empowering Windows Config/Admin Automation

Posted in Blogroll with tags , , , , , , , , , , , on December 28, 2011 by abhishekkr [24-December-2011]

Basics  of  MS Windows Powershell

A dotNet framework based scripting language to automate the configuration/administration of Microsoft Windows machine.
Powershell is loaded with several cmdlets (special command-lets) acting as a built-in shell utilities to perform different tasks on Windows machine for performing administrative tasks.

Getting Started
Powershell’s cmdlets act upon and return objects as a result of any action taken.
These can be used in combination with traditional Windows services like Registry, Net and more.

To try your hands over powershell, access it at ‘Start Menu’ > ‘Accessories’ > ‘Windows Powershell’;
there you’ll get mainly a shell from ‘Powershell’, and an interactive IDE-like shell‘Powershell ISE’.

Using powershell, cmdlets are the main power-source of this Powershell which are discussed briefly below…..

to get a quick /Hello World/ feel of Powershell, you could try on few next steps
* emulating a …..

 [+] to have a Powershell script, check for a system service….. start it if stopped

  $svc_name = “aspnet_state
  $svc_status = Get-Service | Where {$ -eq $svc_name} | %{ $_.status }
if (-not $svc_status) {
     Write-Host “Error: $svc_name not found”
  elseif ($svc_status -eq “running”){
     Write-Host “status ok $svc_name”
  } else {
     Start-Service $svc_name

  [+] Now …..

… here to read in detail