Skip to content

Instantly share code, notes, and snippets.

View jeevanullas's full-sized avatar

Deependra Singh Shekhawat jeevanullas

View GitHub Profile
@jeevanullas
jeevanullas / keybase.md
Created October 23, 2016 23:33
Keybase proof

Keybase proof

I hereby claim:

  • I am jeevanullas on github.
  • I am jeevanullas (https://keybase.io/jeevanullas) on keybase.
  • I have a public key ASAgRjs3SsagblTyFCsmBrr7Q5ey8Kvwc4nlPp0UfoxxGgo

To claim this, I am signing this object:

@jeevanullas
jeevanullas / driver_euca.rb
Last active December 16, 2015 12:19
Work in Progress for EC2 functionality test
require 'rubygems'
require 'yaml'
require 'aws-sdk'
require 'logger'
require 'net/http'
require 'net/ssh'
AWS.config({
:access_key_id => '<Access Key>',
:secret_access_key => '<Secret Key>',
@jeevanullas
jeevanullas / ngrep-without-proxy.txt
Created April 11, 2013 16:37
ngrep without proxy
T 10.104.1.168:33409 -> 10.104.1.150:8773 [AP]
POST /services/Eucalyptus/ HTTP/1.1
Host: 10.104.1.150:8773
User-Agent: aws-sdk-java/1.3.33 Linux/2.6.32-358.2.1.el6.centos.plus.x86_64 OpenJDK_64-Bit_Server_VM/20.0-b12
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Content-Length: 224
Connection: Keep-Alive
Action=DescribeInstances&SignatureMethod=HmacSHA256&AWSAccessKeyId=XMBBFJDYDY5CRK7MFY3IH&SignatureVersion=2&Version=2012-12-01&Signature=cXv9nwPrtEOHV6WRTjApyMXf%2FsDLQTsC3XjK7Y9cZPQ%3D&Timestamp=2013-04-11T16%3A31%3A42.797Z
##
@jeevanullas
jeevanullas / ngrep-with-proxy.txt
Created April 11, 2013 16:37
ngrep with proxy
####
T 10.104.1.151:55014 -> 10.104.1.150:8773 [AP]
POST /services/Eucalyptus HTTP/1.1
Host: 10.104.1.150:8773
User-Agent: aws-sdk-java/1.3.33 Linux/2.6.32-358.2.1.el6.centos.plus.x86_64 OpenJDK_64-Bit_Server_VM/20.0-b12
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Forwarded-For: 10.104.1.168
X-Forwarded-Host: eucalyptus.example.com
X-Forwarded-Server: eucalyptus.example.com
Connection: Keep-Alive
@jeevanullas
jeevanullas / httpd.conf
Created April 11, 2013 16:03
mod proxy with apache
<VirtualHost *>
ServerName eucalyptus.example.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://10.104.1.168:8773/services/Eucalyptus
ProxyPassReverse / http://10.104.1.168:8773/services/Eucalyptus
<Location />
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.io.File;
import com.amazonaws.AmazonClientException;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.PropertiesCredentials;
@jeevanullas
jeevanullas / rhc-app-create-demoeuca-diy-0.1
Created April 8, 2013 17:40
rhc-app-create-demoeuca-diy-0.1
Application Options
-------------------
Namespace: jeevanullas
Cartridges: diy-0.1
Gear Size: default
Scaling: no
Creating application 'demoeuca' ... dnsruby can't connect to 192.168.112.120:53 from 0.0.0.0:63182, use_tcp=false, exception = Errno::EACCES, Permission denied - bind(2)
[root@g-12-04 ~]# rhc app create demoeuca diy-0.1
Application Options
$ rhc setup --debug
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed.
DEBUG: Running login_stage
DEBUG: Connecting to https://broker.example.com/broker/rest/api
DEBUG: Request GET https://broker.example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
@jeevanullas
jeevanullas / openshift-ansible-playbook-node-output.txt
Created April 8, 2013 11:56
ansible playbook openshift origin node fedora 18 output
ansible-playbook node.yml
SSH password:
PLAY [Node pre-install configs] *********************
GATHERING FACTS *********************
ok: [10.104.3.10]
TASK: [Hostname config] *********************
ok: [10.104.3.10]
@jeevanullas
jeevanullas / openshift-ansible-playbook-broker-output.txt
Created April 8, 2013 09:32
ansible playbook openshift origin broker fedora 18 output
# ansible-playbook broker.yml
SSH password:
PLAY [Broker pre-install configs] *********************
GATHERING FACTS *********************
ok: [10.104.3.10]
TASK: [Hostname config] *********************
changed: [10.104.3.10]