This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:::Client ::: | |
mZipFileName ="bla.zip"; | |
main(){ | |
DownloadThread mFileDNThread = new DownloadThread (mZipFileName,"welcome message"); | |
mFileDNThread.start(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker-basic-commands on 12.04, Docker installed via mirrors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Puppet Master/Agent setup on Ubuntu 12.04 | |
###Machine1(Master node/server): | |
OS: Ubuntu 12.04 | |
vi etct/hosts | |
192.168.171.81 master | |
####Install on Master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pdp-mbp: ~ $ cat hostlist.txt | |
sfo-crawl-4 | |
sfo-crawl-5 | |
sfo-crawl-6 | |
sfo-crawl-7 | |
sfo-crawl-8 | |
sfo-crawl-9 | |
sfo-crawl-11 | |
sfo-crawl-14 | |
pdp-mbp: ~ $ csshX --host hostlist.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Hadoop 2.6.0 Multinode cluster Setup | |
From Blog http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/ | |
###Machine 1(master). | |
Prequisite: | |
java version | |
java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
echo -n Enter you Age: | |
read aAge | |
if test -z "$aAge" | |
then | |
echo Enter Age in Numeric value. | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#getprocess=`adb devices` | |
#echo $getprocess | |
#set $getprocess | |
#deviceid=$5 | |
#echo $deviceid | |
#adb -s $deviceid shell | |
#if [ -z "$7" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git V1.7.9.5 First Time | |
:::::::::::::::Non Bare repo::::::::::::::::::::::::::::::: | |
+++++++Use case 1+++++ | |
$ git clone ~/ext/test_nb_repo/ testnb | |
$ cd tesnb | |
$ cat README | |
$ vi README | |
$ git add * | |
$ git commit -am "rem line 4 in readme" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Link prebuilt static library Android | |
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
#run scipt | |
#ECHO_RESULT := $(info $(shell ($(LOCAL_PATH)/testscript.sh))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile template for Static library. | |
# 1. Compile every *.cpp in the folder | |
# 2. All obj files under obj folder | |
# 3. static library .a at lib folder | |
# 4. run 'make dirmake' before calling 'make' | |
CC = g++ | |
OUT_FILE_NAME = libNAME.a |
NewerOlder