Skip to content

Instantly share code, notes, and snippets.

@basharam
basharam / client_and_server_with_ZIPclass.txt
Created May 15, 2020 12:41
Send all files and subfolders over socker as ZIP file over Server on lookback adapter Android
:::Client :::
mZipFileName ="bla.zip";
main(){
DownloadThread mFileDNThread = new DownloadThread (mZipFileName,"welcome message");
mFileDNThread.start();
}
@basharam
basharam / docker-basic-cmds
Created January 2, 2015 15:31
Docker basic setup
Docker-basic-commands on 12.04, Docker installed via mirrors.
@basharam
basharam / puppet-master-agent-setup
Created December 30, 2014 15:50
Puppet Master/Agent setup on Ubuntu 12.04
#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
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
@basharam
basharam / hadoop_multinode_cluster_setup
Created December 29, 2014 10:39
Hadoop 2.6.0 Multinode cluster Setup
#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
@basharam
basharam / testcmd.sh
Created July 10, 2014 10:21
test command example
#/bin/sh
echo -n Enter you Age:
read aAge
if test -z "$aAge"
then
echo Enter Age in Numeric value.
exit
fi
@basharam
basharam / multi_adb_shell.sh
Last active August 29, 2015 14:03
open adb shell for all devices connected to host(tested on ubuntu 12.04)
#!/bin/sh
#getprocess=`adb devices`
#echo $getprocess
#set $getprocess
#deviceid=$5
#echo $deviceid
#adb -s $deviceid shell
#if [ -z "$7" ]; then
@basharam
basharam / git_knowhow.txt
Last active August 29, 2015 13:57
git V1.7.9.5 First Time
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"
@basharam
basharam / Android.mk
Last active March 1, 2018 02:02
Link prebuilt static library Android
#Link prebuilt static library Android
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#run scipt
#ECHO_RESULT := $(info $(shell ($(LOCAL_PATH)/testscript.sh)))
@basharam
basharam / Makefile
Last active June 21, 2024 05:16
Makefile template for Static library.
# 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