Skip to content

Instantly share code, notes, and snippets.

@hierynomus
hierynomus / rke-multipass.md
Created October 6, 2023 07:36
RKE2 on Multipass

Setup Multipass

> multipass launch --cpus 4 --disk 100G --mem 8G -n rke

Login to multipass server

> multipass shell rke
Description: >
Sub template to setup an ECS cluster for running XebiaLabs JetPack
Parameters:
EnvironmentName:
AllowedPattern: ^[0-9a-zA-Z]+([0-9a-zA-Z-]*[0-9a-zA-Z])*$
Description: An environment name that will be prefixed to resource names.
Type: String
InstanceType:
@hierynomus
hierynomus / ecs.yaml
Created March 26, 2019 11:46
CFN problems...
---
AWSTemplateFormatVersion: 2010-09-09
Description: |
Sub template to setup an ECS cluster for running XebiaLabs JetPack
Parameters:
EnvironmentName:
AllowedPattern: ^[0-9a-zA-Z]+([0-9a-zA-Z-]*[0-9a-zA-Z])*$
Description: An environment name that will be prefixed to resource names.
Type: String

Keybase proof

I hereby claim:

  • I am hierynomus on github.
  • I am ajvanerp (https://keybase.io/ajvanerp) on keybase.
  • I have a public key ASAje3QDcJNAa0X0UU75tlEVzpYPxAUCvORwgvqDHKVR6go

To claim this, I am signing this object:

@hierynomus
hierynomus / gist:4fa973975d5f10a0f44f
Created December 29, 2015 13:33
Advent of Code timings
--------------- day1.py ----------------
python $f 0.01s user 0.01s system 88% cpu 0.018 total
--------------- day10.py ----------------
python $f 4.77s user 0.03s system 99% cpu 4.806 total
--------------- day11.py ----------------
python $f 0.93s user 0.01s system 99% cpu 0.944 total
--------------- day12.py ----------------
python $f 0.02s user 0.01s system 89% cpu 0.027 total
--------------- day13.py ----------------
python $f 2.09s user 0.03s system 99% cpu 2.120 total
@hierynomus
hierynomus / StackOverflowTest.java
Last active February 19, 2021 07:41
Kryo 2.24.0 / 3.0.3 StackOverflowError with generics
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.FastOutput;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
@hierynomus
hierynomus / EnsureMinimumSeparation.scala
Created September 4, 2014 12:42
Ensure Minimum Separation
object EnsureMinimumSeparation {
case class CountedString(data: Char, count: Int) extends Comparable[CountedString] {
override def compareTo(o: CountedString): Int = {
if (count != o.count) {
count - o.count
} else {
o.data - data
}
}
}
@hierynomus
hierynomus / Spray205Test.scala
Last active August 29, 2015 13:57
Spray time-out with StatusCode 205
import org.scalatest.{BeforeAndAfterAll, ShouldMatchers, BeforeAndAfter, FunSpec}
import com.xebialabs.restito.server.StubServer
import com.xebialabs.restito.builder.stub.StubHttp._
import com.xebialabs.restito.semantics.Condition._
import com.xebialabs.restito.semantics.Action._
import org.glassfish.grizzly.http.util.HttpStatus
import akka.actor.ActorSystem
import spray.client.pipelining._
import scala.concurrent.{Await, Future}
import spray.http.{StatusCodes, HttpResponse}
@hierynomus
hierynomus / brain.json
Last active December 13, 2015 18:08
Xebialabrat brain
{
"users": {
"247597": {
"id": "247597",
"jid": "35753_247597@chat.hipchat.com",
"name": "Jeroen van Erp",
"mention_name": "JeroenvanErp"
},
"247605": {
"id": "247605",
@hierynomus
hierynomus / second snippet
Created November 15, 2012 12:57
Gradle wrapper build/init script cache threading
Started by upstream project "Deployit common build" build number 243
Building remotely on honeydew in workspace /home/jenkins/jenkins/workspace/Plugin - JBoss AS
Checkout:Plugin - JBoss AS / /home/jenkins/jenkins/workspace/Plugin - JBoss AS - hudson.remoting.Channel@5c3e99:honeydew
Using strategy: Default
Last Built Revision: Revision xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from git@github.com:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Commencing build of Revision xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (origin/master)
Checking out Revision xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (origin/master)
[Gradle] - Launching build.