Skip to content

Instantly share code, notes, and snippets.

Avatar

Ravi Subramanian scorpiodawg

  • www.bymason.com
  • https://www.twitter.com/ravisu
View GitHub Profile
@scorpiodawg
scorpiodawg / ghcreate.sh
Created May 4, 2018
Github Create Project from bash
View ghcreate.sh
#U sage: gcreate userName repoName "Description if any"
gcreate () {
curl -u $1 https://api.github.com/user/repos -d "{\"name\": \"$2\", \"description\": \"$3\"}"
}
@scorpiodawg
scorpiodawg / README.aapt.md
Last active Feb 21, 2018
Running aapt directly to create an APK
View README.aapt.md

Run aapt directly to create am unsigned APK:

aapt package \
    -v \
    -M AndroidManifest.xml \
    -S res/ \
    -I /path/to/overlaid.apk \
    -I /path/to/out/target/product/device/system/framework/framework-res.apk \
    -F package.apk \
View keybase.md

Keybase proof

I hereby claim:

  • I am scorpiodawg on github.
  • I am ravisu (https://keybase.io/ravisu) on keybase.
  • I have a public key ASCdoPlvP5WgZqMOvX9GWMnusJQVnpsjbuWBxKjuAIEbFgo

To claim this, I am signing this object:

@scorpiodawg
scorpiodawg / Connectivity.java
Created Dec 23, 2016 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
View Connectivity.java
package com.emil.android.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* Check device's network connectivity and speed
* @author emil http://stackoverflow.com/users/220710/emil
You can’t perform that action at this time.