- Install NixOS
- Add required packages
In /etc/nixos
edit configuration.nix
imports =
[ # ...
./ldapserver.nix
];
package com.github.pshirshov.izumi.idealingua.runtime.services | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.util.Try | |
import scala.language.{higherKinds, implicitConversions} | |
//-------------------------------------------------------------------------- | |
// Runtime: unopinionated part | |
trait ServiceResult[R[_]] { |
In /etc/nixos
edit configuration.nix
imports =
[ # ...
./ldapserver.nix
];
There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.
We attach the SATA HDDs as a RDM (Raw Device Mapper) into an existing virtual disk in the command line, then on the web app
Copy partition table:
sfdisk -d /dev/sda > part_table
sfdisk /dev/sda < part_table
Copy boot partition
dd if=/dev/sda1 of=/dev/sdb1 bs=50M
# Module groups for genkernel initramfs auto-loading | |
# RAID | |
MODULES_ATARAID="" | |
#MODULES_DMRAID="dm-mod dm-mirror dm-crypt" | |
MODULES_DMRAID="" | |
MODULES_LVM="" | |
#MODULES_MDADM="dm-mod dm-snapshot dm-mirror dm-crypt dm-bbr raid0 raid1 raid456 raid5 raid6 raid10" | |
MODULES_MDADM="" |
// works in dotty, not in scala | |
trait Provider[P] { | |
def provide: P | |
} | |
implicit object IntProvider extends Provider[Int] { | |
override def provide = 1 | |
} | |
implicit object StringProvider extends Provider[String] { |
private def isRunningUnderSbt: Boolean = { | |
Option(System.getProperty("java.class.path")).exists(_.contains("sbt-launch.jar")) | |
} | |
import scala.tools.nsc.{Global, Settings} | |
val settings = new Settings() | |
settings.d.value = ctarget.toString | |
settings.feature.value = true | |
settings.warnUnused.add("_") |
cat > ~/.sbt/1.0/plugins/build.sbt <<EOL | |
scalaVersion := "2.12.8" | |
// https://github.com/coursier/coursier | |
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-M8") | |
//https://github.com/aiyanbo/sbt-dependency-updates | |
addSbtPlugin("org.jmotor.sbt" % "sbt-dependency-updates" % "1.1.13") | |
// https://github.com/sbt/sbt-dirty-money |
import scalaz.zio.{ExitResult, IO, RTS, Schedule} | |
import scala.concurrent.duration.{Duration, FiniteDuration} | |
import scala.language.implicitConversions | |
import scala.util.{Failure, Success, Try} | |
trait BifunctorIO[R[+ _, + _]] extends { | |
type Or[+E, +V] = R[E, V] | |
type Just[+V] = R[Nothing, V] |