Skip to content

Instantly share code, notes, and snippets.

View riyaz's full-sized avatar

Riyaz Mohammed Ibrahim riyaz

View GitHub Profile
### Keybase proof
I hereby claim:
* I am riyaz on github.
* I am riyaz (https://keybase.io/riyaz) on keybase.
* I have a public key whose fingerprint is 6464 EE92 3AC7 E167 D15E 9EDA 0DB0 5883 1FB2 E2EC
To claim this, I am signing this object:
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
@riyaz
riyaz / git.log.md
Last active October 19, 2016 03:38
Simple git log for release notes
git log --pretty=format:'*%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --no-merges

Pro tip : Create git alias in .gitconfig for easy access like git lr

[alias]
 lr = log --pretty=format:'*%C(yellow)%d%Creset %s %C(bold blue)&lt;%an&gt;%Creset' --abbrev-commit --no-merges
@riyaz
riyaz / branch-clean.sh
Created October 24, 2016 13:37
Clean the local branches regularly with these alias
alias brclean='git branch --merged | grep -v develop | xargs git branch -d && git remote prune origin'
alias brclean-dry='git branch --merged | grep -v develop'
@riyaz
riyaz / nonnull.gradle
Created February 11, 2018 04:09 — forked from kosiara/nonnull.gradle
@ParametersAreNonnullByDefault for all subpackages
/**
* File: nonnull.gradle
*
* Generates package-info.java for appropriate packages
* inside src/main/java folder.
*
* This is a workaround to define @ParametersAreNonnullByDefault for all Java classes in a package
* i.e. including all subpackages (note: edit line no. 19).
*/
task generateNonNullJavaFiles(type: Copy) {
@riyaz
riyaz / installFromAAB.sh
Last active January 14, 2023 19:36 — forked from keyboardsurfer/installFromBundle
Install the app in device from aab
#!/bin/sh
# One step wrapper to install aab to connected device, it downloads bundletool if its missing and signs the app with android debug certifiate.
#
# Usage: installFromAAB install-aab <local-aab-path>
BASENAME="${1##*/}"
KEYSTORE=~/.android/debug.keystore
KS_ALIAS="androiddebugkey"
PASS="pass:android"
@riyaz
riyaz / gist:9048a5e2fc72125beb62db910987a635
Last active November 14, 2020 07:28
delete mails in promotions, social, forums which are older than 1 month
function deleteMail() {
var filter = "{category:promotions category:social category:forums} in:spam -in:starred -in:important older_than:5d"
var threads = GmailApp.search(filter, 0, 100);
Logger.log("Deleting " + threads.length);
for (var i = 0; i < threads.length; i++) {
Logger.log("Deleting .. " + threads[i].getFirstMessageSubject());
threads[i].moveToTrash();
}
}