Skip to content

Instantly share code, notes, and snippets.

View tlandschoff-scale's full-sized avatar

Torsten Landschoff tlandschoff-scale

  • Scale GmbH
  • Dresden
View GitHub Profile
@davidallsopp
davidallsopp / PropertyTests.scala
Last active September 16, 2020 14:07
Examples of writing mixed unit/property-based (ScalaTest with ScalaCheck) tests. Includes tables and generators as well as 'traditional' tests.
/**
* Examples of writing mixed unit/property-based (ScalaCheck) tests.
*
* Includes tables and generators as well as 'traditional' tests.
*
* @see http://www.scalatest.org/user_guide/selecting_a_style
* @see http://www.scalatest.org/user_guide/property_based_testing
*/
import org.scalatest._
@iammoen
iammoen / Vagrantfile
Created June 29, 2020 11:46
Vagrantfile to build k3s cluster
default_box = 'ubuntu/bionic64'
Vagrant.configure(2) do |config|
config.vm.define 'master' do |master|
master.vm.box = default_box
master.vm.hostname = "master"
master.vm.synced_folder ".", "/vagrant", type:"virtualbox"
master.vm.network 'private_network', ip: "192.168.0.200", virtualbox__intnet: true
master.vm.network "forwarded_port", guest: 22, host: 2222, id: "ssh", disabled: true
master.vm.network "forwarded_port", guest: 22, host: 2000 # SSH TO MASTER/NODE