Job openings for Fresher 2014 or 15 passouts
There’re fresher (2014,2015 passouts with Computer background) and Lead positions for Technical support at Zeta Interactive Pvt. Ltd (http://www.zetainteractive.com/) Pls share your CV to skondoji@zetainteractive.com & sudhakar.kondoji@gmail.com and you’ll be contacted for your interview slot. …
Processing Apache logs using a Python script
[root@localhost apache2]# cat ../apache.py __author__ = ‘root’ #!/usr/bin/python import re import sys from datetime import datetime, date, timedelta from collections import Counter # Define the day of interest in the Apache common log format. try: daysAgo = int(sys.argv[1]) except:…
Python script to list all files, directories in a given path
[root@localhost utils]# pwd /root/Documents/dbversity/utils [root@localhost utils]# [root@localhost utils]# [root@localhost utils]# ll -lhtr total 20K -rw-r–r–. 1 root root 0 Jun 8 14:24 _init_.py -rw-r–r–. 1 root root 95 Jun 8 14:35 new_function.py -rw-r–r–. 1 root root 77 Jun 8 14:54…
[MongoDB]: To add mongod to Linux startup
mongod script: #!/bin/bash # mongod – Startup script for mongod # description: Mongo is a scalable, document-oriented database. # chkconfig: 35 85 15 MONGO_USER=mongod if [ `id -nu` != $MONGO_USER -a `id -nu` != “root” ]; then echo “Exiting –…
[Linux]: SSH between two EC2 hosts
Using username “ec2-user”. Authenticating with public key “imported-openssh-key” Last login: Fri May 8 12:23:16 2015 from 49.205.126.24 __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| https://aws.amazon.com/amazon-linux-ami/2015.03-release-notes/ 11 package(s) needed for security, out of 36 available Run “sudo yum…
[MySQL]: SysBench Installation procedure
SysBench: System evaluation benchmark Why ? The idea is to quickly get an impression about system performance for MySQL usage without setting up complex benchmark and even without installing MySQL. In some cases this is very helpful. This is also the…
[MongoDB]: Sharded cluster script
Shell script to run a 3 sharded cluster (3 ReplicaSet) on a single server. [root@dbversity.com bin]# cat shard_creation_script.sh ##### Killing the existing Mongo processes ################ for i in `ps -ef | egrep ‘shardsvr|configsvr|replSet|configdb’ | grep -v egrep | awk -F”…
[Linux]: To set JAVA/HADOOP env variables permenently
[root @ dbversity /tmp]# java -version java version “1.8.0_05” Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) [root @ dbversity /tmp] [root @ dbversity /tmp]# which java /usr/java/jdk1.8.0_05/bin/java Otherway to know the installed…
[Linux]: How do I remove ‘Control M’ i.e., (^M) characters from a file
To create a file with “Control M” (^M) characters – you can type Ctrl+V,Ctrl+M from keyboard through vi editor in a linux file. And to view “Control M” characters in a file, you can use “cat -v filename” or “cat…
[Linux]: Bulk user creation script
[root@myhostname ~]# cat usercreation_script.sh #!/bin/bash # shell script to add a users to Linux server ## checking for highest volume partition on the server to create user’s home directory partition=`df -h | awk {‘print $4 ” ” $6 ‘} |…