Skip to content

Instantly share code, notes, and snippets.

@jlcanela
jlcanela / wsl2-starts.feature
Created September 23, 2020 07:53
Gherkin acceptance test scenario to ensure WSL2 still starts (Replace "Ubuntu 18.04 LTS" by your favorite distribution)
Feature: WSL2 is still accessible
Scenario: Apply the latest W10 patch does not break WSL2 shell
Given a Windows 10 desktop is installed
When the latest patch is applied
And "Ubuntu 18.04 LTS" shell is started
Then the default shell prompt is displayed without any error
Scenario: Apply the latest W10 patch does not break WSL2 filesystem integration
Given a Windows 10 desktop is installed
@jlcanela
jlcanela / README.md
Last active October 20, 2022 09:32
How to mount QUBES LUKS Disks
@jlcanela
jlcanela / README.md
Created January 4, 2020 13:28
Swift4Tensorflow Docker on OSX, v0.6, CPU only

Update

Update image from [dockerfile][https://github.com/google/swift-jupyter/blob/master/docker/Dockerfile]:

ARG swift_tf_url=https://storage.googleapis.com/swift-tensorflow-artifacts/nightlies/latest/swift-tensorflow-DEVELOPMENT-ubuntu18.04.tar.gz
ARG swift_tf_url=https://storage.googleapis.com/swift-tensorflow-artifacts/releases/v0.6/rc1/swift-tensorflow-RELEASE-0.6-ubuntu18.04.tar.gz

Build

object MyJGitSample {
import scalaz._
import scalaz.effect.IO
def lift[T](f: => T) = EitherT(IO(\/.fromTryCatchNonFatal(f)))
def abortIf(b: Boolean, msg: String) = EitherT(IO(if (b) -\/(new Throwable(msg)) else \/-(())))
def createCommand = {
@jlcanela
jlcanela / README.md
Last active August 29, 2015 14:01
How to generate an avro file

Avro Maven

Some simple examples of how to use the Avro Maven plugin to generate Avro sources given an Avro schema, protocol or IDL file.

License

Apache version 2.0 (for more details look at LICENSE.