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 / python-zope-interface-issue
Created May 13, 2015 05:04
Commands to temporarily fix python-zope-interface issue with eucaconsole
# rpm -e python-zope-interface python-chameleon python-zope-component python-transaction python-zope-schema python-zope-configuration python-pyramid python-pyramid-chameleon python-pyramid-tm python-pyramid-beaker python-pyramid-layout --nodeps
# wget ftp://ftp.muug.mb.ca/mirror/centos/6.6/os/x86_64/Packages/python-zope-filesystem-1-5.el6.x86_64.rpm
# rpm -ivh python-zope-filesystem-1-5.el6.x86_64.rpm
# yum install python-zope-interface-3.5.2-2.1.el6.x86_64
# yum install python-chameleon python-pyramid python-pyramid-beaker python-pyramid-chameleon python-pyramid-layout python-pyramid-tm
[centos@euca-10-30-1-154 ~]$ terraform plan
Refreshing Terraform state prior to plan...
aws_instance.example: Refreshing state... (ID: i-c934c041)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed.
@jeevanullas
jeevanullas / nc.log
Created February 16, 2014 20:36
nc.log
2014-02-16 12:31:39 INFO 000022097 doRunInstance | [i-F5DF44F8] running instance cores=2 disk=10 memory=512 vlan=-1 net=-1 priMAC=d0:d0:F5:DF:44:F8 privIp=0.0.0.0 plat=linux kernel=(null) ramdisk=(null)
2014-02-16 12:31:39 DEBUG 000022097 vbr_legacy | [i-F5DF44F8] VBR[0] type=swap id=none dev=sda3 size=536870912 format=swap none
2014-02-16 12:31:39 DEBUG 000022097 vbr_legacy | [i-F5DF44F8] VBR[1] type=ephemeral id=none dev=sda2 size=8152546816 format=ext3 none
2014-02-16 12:31:39 DEBUG 000022097 vbr_legacy | [i-F5DF44F8] VBR[2] type=machine id=emi-D5EF3577 dev=sda1 size=2048000512 format=none walrus://fedora20/euca-fedora20-fedora-2013.12.18-x86_64.img.manifest.xml
2014-02-16 12:31:39 DEBUG 000022097 vbr_legacy | [i-F5DF44F8] VBR[3] type=kernel id=eki-FE363899 dev=none size=0 format=none walrus://fedora20/vmlinuz-3.11.10-301.fc20.x86_64.manifest.xml
2014-02-16 12:31:39 DEBUG 00002209
@jeevanullas
jeevanullas / cloud-output.log
Created February 16, 2014 20:25
cloud-output.log
2014-02-16 12:12:11 INFO 000079767 Images | Triggering cache population in Walrus for: eki-FE363899
2014-02-16 12:12:11 INFO 000001199 WalrusImageManager | [CorrelationId: 2f60a1e4-602e-47b9-bab4-a96105e836ae-899799 | Account: 000000000000] Processing CacheImage request for fedora20/vmlinuz-3.11.10-301.fc20.x86_64.manifest.xml
2014-02-16 12:12:11 DEBUG 000001199 WalrusImageManager | [CorrelationId: 2f60a1e4-602e-47b9-bab4-a96105e836ae-899799 | Account: 000000000000] No caching task found for image: fedora20/vmlinuz-3.11.10-301.fc20.x86_64.manifest.xml Initiating caching task.
2014-02-16 12:12:11 DEBUG 000001199 WalrusImageManager | [CorrelationId: 2f60a1e4-602e-47b9-bab4-a96105e836ae-899799 | Account: 000000000000] Attempting to cache image fedora20/vmlinuz-3.11.10-301.fc20.x86_64.manifest.xml.
2014-02-16 12:12:11 DEBUG 000001199 WalrusImageManager | [CorrelationId: 2f60a1e4-602e-47b9-bab4-a96105e836ae-899799 | Account: 000000000000] No current caching tasks found f
@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;