Skip to content

Instantly share code, notes, and snippets.

View umarniz's full-sized avatar

Umar Nizamani umarniz

View GitHub Profile
package com.nerdiacs.forcemobiledatatest;
import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
@umarniz
umarniz / UninstallPackageFromAllDevices.sh
Last active August 23, 2016 08:18
Uninstalls package from all connected devices with pretty print
#!/bin/sh
PACKAGE_TO_REMOVE="nl.sense_os.";
# Remove all apps with $PACKAGE_TO_REMOVE ids
echo "Started to loop over the connected android devices"
echo ""
for SERIAL in $(adb devices | grep -v List | cut -f 1);
do
@umarniz
umarniz / dock-clean.sh
Created September 29, 2016 14:05
A gist to stop running containers and remove any stopped or dangling containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images --quiet --filter "dangling=true")
@umarniz
umarniz / keybase.md
Created October 18, 2017 14:20
Verifying my Keybase Identity

Keybase proof

I hereby claim:

  • I am umarniz on github.
  • I am umarniz (https://keybase.io/umarniz) on keybase.
  • I have a public key ASBDUvKQ5FixgbX9kBcDYnwVnDMCxpy-eu03q0CoDIibkwo

To claim this, I am signing this object: