Skip to content

Instantly share code, notes, and snippets.

View shafi-codez's full-sized avatar

shafi shafi-codez

View GitHub Profile
__author__ = 'shafi'
import pprint
import json
import collections
json_data=open("cloud.json").read()
data = json.loads(json_data)
#print json.dumps(data,indent=4,sort_keys=False)
d = json.JSONDecoder(object_pairs_hook = collections.OrderedDict)
@shafi-codez
shafi-codez / aws-chef-cf
Last active August 29, 2015 14:02
AWS Deployment automaition using Chef & ACF
aws configure
sudo wget -O- https://opscode.com/chef/install.sh | sudo bash
sudo yum install git -y
gem install foodcritic
aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE
#https://github.com/shafi-codez/chef-bootstrap
aws cloudformation validate-template --template-url https://s3.amazonaws.com/cloudformation-templates-us-east-1/S3_Bucket.template

Selenium with Python

Author

Baiju Muthukadan

Email

baiju.m.mail AT gmail.com

Version

0.5.0

Note

@shafi-codez
shafi-codez / app.py
Created April 21, 2014 21:08
how to use docopt examples
"""Usage:
app.py --user=username --pwd=password --json
app.py --user=username --pwd=password
Arguments:
--user=username Application User Name
--pwd=password Application password
Options:
--json enable json output
@shafi-codez
shafi-codez / ffmpeg
Created April 20, 2014 01:30
ffmpeg
sudo apt-get install build-essential libfuse-dev fuse-utils libcurl4-openssl-dev libxml2-dev mime-support -y
wget
export GLU_HOME=""
sudo apt-get install openjdk-7-jdk -y
export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
@shafi-codez
shafi-codez / MyPackages
Last active August 29, 2015 13:59
MyPackages
cinst git
cinst notepadplusplus
cinst GoogleChrome
cinst 7zip
cinst javaruntime
cinst flashplayeractivex
cinstm skydrive
cinst XmlNotepad
cinst python
cinst ccleaner
@shafi-codez
shafi-codez / test
Last active August 29, 2015 13:59
test
cinstm fiddler4
cinstm poshgit
#!/usr/bin/env python2.7
import time
_URL = 'http://localhost/tmp/derp.html'
_NUMBER = 1000
def test_urllib2():
import urllib2
@shafi-codez
shafi-codez / pycharm-install
Last active March 11, 2016 06:58
Pycharm installation
yum install java-1.7.0-openjdk-devel
gunzip pycharm-community-3.1.1.tar.gz
tar -xvf pycharm-community-3.1.1.tar
mv pycharm-community-3.1.1 pycharm-3.1
export JAVA_HOME=/usr
# Pycharm looks with bin/java
vi ~/.bashrc
# Install Python pip
$ cd /tmp
$ wget http://mirror-fpt-telecom.fpt.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
yum -y install python-pip
scp -r /root/.ssh/* root@10.228.140.110:/root/shafi
killall memcached