Skip to content

Instantly share code, notes, and snippets.

@oliversuarez
oliversuarez / AdbCommands
Created September 26, 2023 21:30 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
// HTTP Client GET
// Usage: jshell --add-modules jdk.incubator.httpclient http-get.jsh
import jdk.incubator.http.*
var client = HttpClient.newHttpClient()
var request = HttpRequest.newBuilder().uri(new URI("https://medium.com/adambgoode")).build()
var response = client.send(request, HttpResponse.BodyHandler.asString())
System.out.println(response.body())
/exit
@oliversuarez
oliversuarez / UpstreamRepos.md
Created February 13, 2022 20:59 — forked from rowland007/UpstreamRepos.md
Describes how to add an upstream remote repo to your forked/cloned repo to get the latest updates.

Keep a Downstream git Repository Current with Upstream Repository Changes

A downstream repository (aka a “fork”) maintainer commonly needs to stay current with upstream work (aka "original"). The case is development continues on the upstream repo while you work on your own origin fork. You want to fetch the upstream changes and apply them to your origin so you don't make conflicts.

image cannot be displayed

The following steps allow you to achieve this on the command line in a local git repository.

Add the Remote Upstream Repository