Skip to content

Instantly share code, notes, and snippets.

View jaysondc's full-sized avatar
💭
Hunting

Jayson Dela Cruz jaysondc

💭
Hunting
View GitHub Profile
@jaysondc
jaysondc / SeparateSigningConfig.md
Last active July 26, 2017 21:23
Sign APK without putting keystore info in build.gradle

Sign an APK without putting keystore info in your build.gradle file

  1. Add the following code to your build.gradle file.
// Load keystore
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

android {
### Keybase proof
I hereby claim:
* I am jaysondc on github.
* I am shakeup (https://keybase.io/shakeup) on keybase.
* I have a public key whose fingerprint is 16BF AE44 F980 536A 0725 C0D9 F8ED 3439 79D7 1D6C
To claim this, I am signing this object:
@jaysondc
jaysondc / pr.md
Created May 31, 2016 04:33 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: