I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| scala> import scala.reflect.runtime.universe._ | |
| import scala.reflect.runtime.universe._ | |
| scala> showCode(reify { | |
| | for{ | |
| | x <- 1 to 5 | |
| | _ = print("hi") | |
| | } print(x) | |
| | }.tree) | |
| res1: String = |
| source "https://rubygems.org" | |
| gem "progressbar" |
| function setjdk | |
| if test -n "$JAVA_HOME" | |
| removeFromPath "$JAVA_HOME/bin" | |
| end | |
| set -gx JAVA_HOME (/usr/libexec/java_home -v $argv[1]) | |
| set -gx PATH $JAVA_HOME/bin $PATH | |
| end | |
| function removeFromPath | |
| set -l idx 0 |