su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| allprojects { | |
| gradle.projectsEvaluated { | |
| tasks.withType(JavaCompile) { | |
| options.compilerArgs << "-Xbootclasspath/p:${rootDir}/app/libs/ext/framework.jar" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/zsh | |
| mkdir rg-install | |
| cd rg-install | |
| wget http://pkg.cloudflare.com/dists/xenial/railgun/binary-amd64/Packages.gz | |
| gunzip Packages.gz | |
| wget "http://pkg.cloudflare.com/${$(cat Packages | grep Filename:)//Filename: }" | |
| ar -x *.deb | |
| tar xvf data.tar.xz | |
| rm -rf /usr/local/railgun | |
| mkdir -p /usr/local/railgun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext.kotlin_version = '1.2.61' | |
| repositories { | |
| google() | |
| jcenter() | |
| } | |
| dependencies { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'jacoco' | |
| jacoco { | |
| toolVersion "0.7.1.201405082137" | |
| reportsDir = file("$buildDir/intermediates/test") | |
| } | |
| // Taken from https://blog.gouline.net/2015/06/23/code-coverage-on-android-with-jacoco/ | |
| project.afterEvaluate { | |
| // Grab all build types and product flavors | |
| def buildTypes = android.buildTypes.collect { type -> type.name } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - build | |
| - test | |
| - deploy | |
| variables: | |
| GIT_STRATEGY: clone | |
| cache: | |
| key: ${CI_PROJECT_ID} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 100% — FF | |
| 99% — FC | |
| 98% — FA | |
| 97% — F7 | |
| 96% — F5 | |
| 95% — F2 | |
| 94% — F0 | |
| 93% — ED | |
| 92% — EB | |
| 91% — E8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tools -> Terminal ->Application settings ->Shell Path: "c:\cygwin64\bin\sh" -lic "cd ${OLDPWD-.}; bash" | |
| https://gist.github.com/mpicker0/a6a3f10e6b9278074f93 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| group = publishedGroupId // Maven Group ID for the artifact | |
| install { | |
| repositories.mavenInstaller { | |
| // This generates POM.xml with proper parameters | |
| pom { | |
| project { | |
| packaging 'aar' | |
| groupId publishedGroupId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/system/bin/sh | |
| # log -t IPTABLES -- $@ | |
| # iptables -w -t mangle -A INPUT -i tun0 -j MARK --set-mark 0x3006a | |
| IPTABLES="/system/bin/iptables.oem iptables" | |
| need_arg=0; | |
| last_cmd=""; | |
| IIF="" |
NewerOlder