Skip to content

Instantly share code, notes, and snippets.

View sahir's full-sized avatar
👊

sahir saiyed sahir

👊
View GitHub Profile
@sahir
sahir / awsScript.sh
Last active March 19, 2019 10:16
Transferring files between remote server to S3
#!/bin/sh
if [ $1 == "help" ];
then
echo "First argument: Path of file on Remote host. \nSecond argument: Path of directory on Local host.\nThird argument: OS type.
Forth argument: configure aws boolean values true/false.\nFifth argument: S3Uri."
else
scp -rv $6:$1 $2
if [ $3 == "mac" ]; then
brew install awscli
else
package com.unique.identifyingdevices;
/**
* Created by sahir on 31/08/16.
*/
import android.content.Context;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import java.io.File;
@sahir
sahir / gist:7232854
Created October 30, 2013 13:39
Location Tracker
Track User Location