sudo apt install openjdk-8-jdk-headless
This file contains 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
import scala.annotation.tailrec | |
class Graph[A](m: Map[A, Set[A]]): | |
type Vertex = A | |
type GraphMap = Map[Vertex, Set[Vertex]] | |
private def neighbors(v: Vertex): List[Vertex] = | |
m.get(v).map(_.toList).getOrElse(List.empty[Vertex]) | |
def search(start: Vertex, end: Vertex): Boolean = | |
@tailrec | |
def bfs(toVisit: List[Vertex], visited: List[Vertex]): Boolean = |
This file contains 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
/* | |
* hex2bytes - hex string of unlimited length to a continous block of bytes | |
* Copyright (C) 2018 Bernhard Arnold <bernhard.arnold@cern.ch> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains 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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
This file contains 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
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem |
This file contains 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
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem |
Based on this article
ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does
This script can be copy paste to ssh as is. No hands installation. :-)
yum install zsh -y
OlderNewer