HP laptop boot loader menu key: F9
Listing keys:
import pulumi_aws as aws | |
import ssh | |
temporary_key = ssh.GenerateSSHKey( | |
'GeneratedTemporaryPlatformSSHKey' | |
) | |
temporary_key_pair = aws.ec2.KeyPair( | |
'TemporaryPlatformSSHKey', |
temporary_key = ssh.GenerateSSHKey( | |
'GeneratedTemporaryPlatformSSHKey' | |
) | |
platform_connection = ssh.ConnectionInputs( | |
host=platform_record.name, | |
username='ec2-user', | |
private_key=temporary_key.private_key, | |
private_key_passphrase=temporary_key.passphrase | |
) |
import eu.timepit.refined.api.{Refined, RefinedType, RefType, Validate} | |
import scala.reflect.macros.blackbox | |
final case class RefinedBoxed[FTP](value: FTP) { | |
override def toString: String = value.toString | |
} | |
object RefinedBoxed { |
import play.api.libs.functional._ | |
import play.api.libs.json.Reads._ | |
import play.api.libs.json._ | |
import scala.collection.GenTraversableOnce | |
trait ReadOps { | |
def updateFieldValues[A <: JsValue](reads: Reads[A]): Reads[JsObject] = { | |
of[JsObject].flatMap { obj => |
How to debug Akka Streams:
akka.stream.impl.PhasedFusingActorMaterializer#materialize
where it has the built in printing.println("\n\nTraversal:")
TraversalBuilder.printTraversal(current);
println("\nWiring:")
TraversalBuilder.printWiring(current);
First set the sources to a single file
sbt> set `integration-tests`/Test/sources ~= (_.filter(_.name == "UploadsControllerSpec.scala"))
Then enable implicit logging
sbt> set `integration-tests`/scalacOptions += "-Xlog-implicits"
import play.api.libs.json._ | |
trait ADTEnumerationFormat[A] { | |
// Implement this with sealerate. | |
def values: Set[A] | |
private val valueMap: Map[String, A] = { | |
values.map { value => | |
value.toString -> value |
use_nvm() { | |
local nvm_sh | |
if [[ -n ${NVM_DIR} && -e "$NVM_DIR/nvm.sh" ]]; then | |
nvm_sh="$NVM_DIR/nvm.sh" | |
elif [[ -e '~/.nvm/nvm.sh' ]]; then | |
nvm_sh='~/.nvm/nvm.sh' | |
elif [[ -e '/usr/local/opt/nvm/nvm.sh' ]]; then | |
nvm_sh='/usr/local/opt/nvm/nvm.sh' | |
else |
;set _root_.scala.collection.Seq(historyPath := None,shellPrompt := { _ => "" },SettingKey[_root_.scala.Option[_root_.sbt.File]]("sbtStructureOutputFile") in _root_.sbt.Global := _root_.scala.Some(_root_.sbt.file("/private/var/folders/_l/q8t5_1gj5yx49v31fk6mr1p40000gn/T/sbt-structure.xml")),SettingKey[_root_.java.lang.String]("sbtStructureOptions") in _root_.sbt.Global := "download, resolveClassifiers, resolveSbtClassifiers");apply -cp "/Users/jason/Library/Application Support/JetBrains/IntelliJIdea2020.1/plugins/Scala/repo/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2018.2.1+4-88400d3f/jars/sbt-structure-extractor.jar" org.jetbrains.sbt.CreateTasks;*/*:dumpStructure |