Skip to content

Instantly share code, notes, and snippets.

View nalingarg2's full-sized avatar

nalin nalingarg2

View GitHub Profile
Get back to where you started with
$ git rebase --abort
Say your history is
$ git log --pretty=oneline
a931ac7c808e2471b22b5bd20f0cad046b1c5d0d c
yum update -y
yum groupinstall 'Development Tools'
yum install SDL kernel-devel kernel-headers dkms
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
rpm --import oracle_vbox.asc
IE 7/8/9/10/11 Virtual machines from Microsoft
Linux installation notes (tested under Ubuntu 14.04LTS/12.04LTS), assuming VirtualBox is already installed on host.
Install notes
Available images
IE7 - Vista Enterprise
IE8 - XP
IE9 - Win7
IE10 - Win7
IE10 - Win8
@nalingarg2
nalingarg2 / README.md
Last active September 14, 2015 20:33 — forked from magnetikonline/README.md
Rsync delete orphan files from target only - no copy.

Rsync delete orphan files from target only - no copy

Calling Rsync in the following way, using --existing, --ignore-existing and --delete enables the following:

  • Only files at target that do not exist at source will be deleted.
  • Skipping all file copy operations from source to target.
$ rsync -ri \
  --delete --existing --ignore-existing --progress \
  /path/to/source/ /path/to/target
@nalingarg2
nalingarg2 / prereq.sh
Last active August 29, 2015 14:26
prereq for cluster setup
#!/bin/bash
set -x
#IFS=":"
LIST="87 90 89 88 91 85"
for i in $LIST; do
ssh root@10.2.1.$i '
passwd
chkconfig iptables off
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.nalin.hbase</groupId>
<artifactId>hbasetest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>hbasetest</name>
@nalingarg2
nalingarg2 / gist:3ebae4cd80eee8a200a9
Created June 15, 2015 19:59
sample shell script
#!/bin/bash
set -x
#IFS=":"
LIST="118 117 116 112 103 44"
for i in $LIST; do
ssh root@10.2.1.$i '
passwd
mkdir -p ~/.ssh/authorized_keys
ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa
chkconfig iptables off
@nalingarg2
nalingarg2 / ambari.md
Last active August 29, 2015 14:22 — forked from lalyos/ambari.md

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@nalingarg2
nalingarg2 / gist:749852c6992ab18971e7
Created May 27, 2015 23:47
install mysql server
sudo yum install mysql-server
sudo service mysqld start
sudo yum install mysql-connector-java
Configuring MySQL
Configure MySQL to use a strong password and to start at boot.
Set the MySQL root password. Note that in the following procedure, your current root password is blank. Press the Enter key when you're prompted for the root password.
@nalingarg2
nalingarg2 / gist:4ed98d98e6481c5fc165
Last active August 29, 2015 14:20
shell script to binary
yum install -y make
yum install gcc gcc-c++ kernel-devel
wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz OR wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz
tar xvfz shc-3.8.7.tgz
cd shc-3.8.7
make
#Test
./shc -v