Skip to content

Instantly share code, notes, and snippets.

View purusha's full-sized avatar

alan toro purusha

  • Relatech
  • Milan (IT)
View GitHub Profile
import org.scalatest.{BeforeAndAfterAll, FlatSpec, Matchers}
class LangTest extends FlatSpec with Matchers with BeforeAndAfterAll with Logging {
val QD: Int = 42
def toInt(in: String): Option[Int] = {
try {
Some(Integer.parseInt(in.trim))
} catch {
@purusha
purusha / terminal-cheat-sheet.txt
Created January 28, 2020 13:12 — forked from cferdinandi/terminal-cheat-sheet.txt
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
version: "2"
services:
namenode:
build: ./namenode
image: bde2020/hadoop-namenode:1.1.0-hadoop2.7.1-java8
container_name: namenode
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment: