Skip to content

Instantly share code, notes, and snippets.

View shafi-codez's full-sized avatar

shafi shafi-codez

View GitHub Profile
# 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
#!/usr/bin/env python2.7
import time
_URL = 'http://localhost/tmp/derp.html'
_NUMBER = 1000
def test_urllib2():
import urllib2
@shafi-codez
shafi-codez / test
Last active August 29, 2015 13:59
test
cinstm fiddler4
cinstm poshgit
@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 / 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 / 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

Selenium with Python

Author

Baiju Muthukadan

Email

baiju.m.mail AT gmail.com

Version

0.5.0

Note

@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
__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 / charming-scripts
Last active September 10, 2015 21:03
How To Copy using SCP & Private Key
scp -i ~/.ssh/id_rsa sulla@sdi-admin.jenkins.release.in.here.com:/tmp/jenkins.log /tmp/