The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Image from https://www.archlinux.org/
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
| package playground.subtypes | |
| import shapeless._ | |
| import scala.reflect.runtime.universe._ | |
| final case class SubtypeName(value: String) extends AnyVal | |
| trait EnumerateSubtypes[A] { | |
| def subtypeNames: List[SubtypeName] | |
| } |
| #!/bin/bash | |
| #controls backlight on intel cards, | |
| STEP=50 | |
| function usage() { | |
| echo "usage: " `basename $0` " [--inc|--dec]" | |
| } |
| #!/bin/bash | |
| # example crontab entry: | |
| # */5 * * * * mszczygiel /usr/local/bin/batcheck.sh | |
| BAT_PATH="/sys/class/power_supply/BAT0" | |
| ON_BATTERY=$(cat $BAT_PATH/status) | |
| BATTERY_LEVEL=$(cat $BAT_PATH/charge_now) | |
| BATTERY_FULL=$(cat $BAT_PATH/charge_full) |
Slightly disorganized but reasonably complete notes on the algorithms, strategies and optimizations of the Akka Cluster implementation. Could use a lot more links and context etc., but was just written for my own understanding. Might be expanded later.
Links to papers and talks that have inspired the implementation can be found on the 10 last pages of this presentation.
This is the Gossip state representation:
| import scalaz._ | |
| import Scalaz._ | |
| // https://functional.works-hub.com/learn/reverse-state-monad-in-scala-is-it-possible-62a2f | |
| object Playground extends App { | |
| final case class ReverseState[S, A](run: S => (S, A)) { | |
| def map[B](f: A => B): ReverseState[S, B] = ReverseState((s: S) => { | |
| val (next, a) = run(s) | |
| (next, f(a)) | |
| }) |