Skip to content

Instantly share code, notes, and snippets.

View madhurranjan's full-sized avatar

Madhurranjan Mohaan madhurranjan

View GitHub Profile
#!/usr/bin/env ruby
$
require 'json'
require 'date'
$
d = DateTime.now
time_date = {"time" => DateTime.now }
print time_date.to_json
- name: get uuid
action: uri url=http://foo.com/uuid returncontent=yes method=GET
register: uuid
go func() {
w, er := session.StdinPipe()
defer w.Close()
if er != nil {
fmt.Println("doesnt work ", er)
}
files, _ := ioutil.ReadDir(src)
fmt.Println(src)
fmt.Fprintln(w, "D0755 0 ", src)
@madhurranjan
madhurranjan / gist:04c8cbbe061c45b03693
Last active February 22, 2016 21:43
run_calico_test
#!/bin/sh
svc=nginxtest
admin_config_path="cacerts/kubelet/admin_kubeconfig"
for rc in nginxtest positive_test negative_test ; do
#cleanup and bring up test rc
kubectl delete -f test/${rc}.yaml --kubeconfig=${admin_config_path}
kubectl create -f test/${rc}.yaml --kubeconfig=${admin_config_path}
done