Skip to content

Instantly share code, notes, and snippets.

puts `devops project list --format csv | cut -f2 -d ":"`.split("\n").map { |p_name|
`devops project show #{p_name} --format json | grep identifier`.split("\n")
}.flatten.size
@timlianov
timlianov / gist:408fe439af4506a188c4
Created February 16, 2015 20:40
git log extension
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
@timlianov
timlianov / chef.rb
Last active August 29, 2015 14:15 — forked from gmcmillan/chef.rb
require 'base64'
require 'time'
require 'digest/sha1'
require 'openssl'
require 'net/https'
require 'json'
class ChefAPI
# Public: Gets/Sets the http object.