Skip to content

Instantly share code, notes, and snippets.

View azizbekian's full-sized avatar

Andranik Azizbekian azizbekian

  • Yerevan, Armenia
View GitHub Profile
@azizbekian
azizbekian / gist:35ac59201fd3e4df4ef0d537b3c6f05b
Created September 13, 2016 14:35 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@azizbekian
azizbekian / README.md
Created November 26, 2017 06:02 — forked from aldur/README.md
OnePlusRoot

Root OnePlus5 without unlocking the bootloader

Gain adb root.

$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"

Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.

apply plugin: 'jacoco'
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*'] // see related issue https://github.com/gradle/gradle/issues/5184#issuecomment-457865951
}
tasks.withType(Test) { jacoco.includeNoLocationClasses = true }
project.afterEvaluate {
apply plugin: "org.sonarqube"
sonarqube {
properties {
property "sonar.host.url", "https://sonarqube.yourcompany.com"
property "sonar.login", "your fancy key"
property "sonar.projectName", "Your Awesome Project Name"
property "sonar.projectKey", "my-test-project"
property "sonar.projectVersion", "1.0.0"
property "sonar.sourceEncoding", "UTF-8"
@azizbekian
azizbekian / build.gradle
Last active January 6, 2021 14:28
SonarQube setup
apply from: "$project.rootDir/sonar.gradle"
buildscript {
repositories {
...
}
dependencies {
...
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0"
}