Skip to content

Instantly share code, notes, and snippets.

@jeffdyke
jeffdyke / clinicaltrails.json
Created November 11, 2021 22:13
1 Trail Study
{'ArmsInterventionsModule': {'ArmGroupDescription': 'Female patients diagnosed '
'with hormone '
'receptor-positive (HR+), '
'lymph node-negative (LN-) '
'or lymph node-positive '
'(LN+, with 1-3 positive '
'nodes) early-stage '
'invasive breast cancer, '
'who are distant '
'recurrence-free.',
@jeffdyke
jeffdyke / ssh_through_bastion_host.go
Last active January 30, 2024 06:27
Go - SSH Through Bastion Host
// I created this to attach to https://stackoverflow.com/questions/60046598/ssh-through-bastion-host
package main
import (
"flag"
"fmt"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
"log"
2019/09/10 13:52:01 [INFO] Terraform version: 0.12.8
2019/09/10 13:52:01 [INFO] Go runtime version: go1.12.9
2019/09/10 13:52:01 [INFO] CLI args: []string{"/home/jeff/.local/bin/terraform", "import", "aws_instance.devjump01", "i-033d129942e9d2abe"}
2019/09/10 13:52:01 [DEBUG] Attempting to open CLI config file: /home/jeff/.terraformrc
2019/09/10 13:52:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/09/10 13:52:01 [INFO] CLI command args: []string{"import", "aws_instance.devjump01", "i-033d129942e9d2abe"}
2019/09/10 13:52:01 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/09/10 13:52:01 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/09/10 13:52:01 [DEBUG] New state was assigned lineage "ddcd4a51-1b9e-7735-64d6-d9a6cda2da3b"
2019/09/10 13:52:01 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@jeffdyke
jeffdyke / ADT.sc
Created May 10, 2018 15:44
Failing to find main method
import $ivy.`com.chuusai::shapeless:2.3.3`
import scala.math.Ordering
import scala.collection.immutable.SortedSet
import scala.language.implicitConversions
import scala.language.reflectiveCalls
object ADT {
object Members {
implicit def conv[T](self: this.type)(implicit v: MkMembers[T]): Set[T] = Members[T]
@jeffdyke
jeffdyke / predefScript.sc
Created June 6, 2017 14:22
predefScript.sc for 1.0.0-RC3
interp.load.ivy(
"com.lihaoyi" %
s"ammonite-shell_${scala.util.Properties.versionNumberString}" %
ammonite.Constants.version
)
@
val shellSession = ammonite.shell.ShellSession()
import shellSession._
import ammonite.ops._
import ammonite.shell._
interp.load.ivy("com.lihaoyi" %% "ammonite-shell" % ammonite.Constants.version)
@
val shellSession = ammonite.shell.ShellSession()
import shellSession._
import ammonite.shell.PPrints._
import ammonite.ops._
import ammonite.shell._
@jeffdyke
jeffdyke / lxc-mounts-from-container-to-host.md
Last active May 2, 2024 19:49
Mount folder in lxc container to the host machine

There is a lot of misleading information out there to solve a very simple problem.
This will allow you to create what would normally be a nfs share between two machines.
There have been many updates to lxc and many ways reported to work, this way worked perfectly for me on the first try and the directories where writable from both machines.

Containers

  • stagingweb01
  • stagingweb02

Shares: