Skip to content

Instantly share code, notes, and snippets.

🇺🇾

Matías Irland matir91

🇺🇾
Block or report user

Report or block matir91

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matir91
matir91 / build.gradle
Last active Jul 29, 2019
Script to manage android secret keys
View build.gradle
apply from: rootProject.file('read_secrets.gradle')
apply plugin: 'com.android.application'
....
android {
defaultConfig {
buildConfigField 'String', 'SOMETHING_SECRET', getEnvVariable('SOMETHING_SECRET')
}
signingConfigs {
View fix_adb
#!/bin/bash
group=`id -g -n`
sudo chown root:$group adb
sudo chmod 4550 adb
sudo ./adb kill-server
View wifi_adb
wifi_adb() {
PORT="$1"
if [ -z "$PORT" ]; then
PORT="5"
fi
re='^[0-9]+$'
if ! [[ $PORT =~ $re ]] ; then
echo "error: Not a number" >&2; return 1
fi
@matir91
matir91 / snapshot_build.sh
Last active Apr 22, 2019
SNAPSHOT Beta release using jenkins
View snapshot_build.sh
#!/bin/bash
echo "Current branch: $GIT_BRANCH"
MAIN_SNAPSHOT_BRANCH="origin/develop"
GRADLE_FILE="app/build.gradle"
CURRENT_COMMIT_HASH=$(git rev-parse --short HEAD)
IS_BETA_SNAPSHOT_BUILD=false
if [[ $GIT_BRANCH == $MAIN_SNAPSHOT_BRANCH ]] ; then # Cheks if this build is a beta release
@matir91
matir91 / .config
Created Feb 13, 2017
OpenWrt Configuration
View .config
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_ppc44x is not set
# CONFIG_TARGET_realview is not set
# CONFIG_TARGET_arm64 is not set
# CONFIG_TARGET_sunxi is not set
@matir91
matir91 / MinRegularIntervalDelay Rxjava operator
Last active Nov 20, 2018
Regular Interval Delay, custom rx operator
View MinRegularIntervalDelay Rxjava operator
import java.util.Date;
import java.util.concurrent.TimeUnit;
import rx.Observable;
import rx.Subscriber;
import timber.log.Timber;
/**
* Created by mirland on 26/02/16.
*/
You can’t perform that action at this time.