Skip to content

Instantly share code, notes, and snippets.

View mindstorms6's full-sized avatar

Breland Miley mindstorms6

View GitHub Profile
@mindstorms6
mindstorms6 / HowTo.md
Last active June 18, 2022 02:39
Build an uber-mega-test jar and run your tests on the CLI when using SpringBootTest

What?

Sometimes, you have a strange need to package all of your test classes in to a giant uber mega jar and run the tests in them. The JUnit ConsoleLauncher works a treat - until you want to use spring and some @SpringBootTest annotations.

Contextually, I had a case where I had some @SpringBootTest classes I wanted to run on repeat but without haivng to deal with gradle. There's almost certainly better ways to do this - but sometimes it's fun to do hard things.

Make an uber mega jar

build.gradle: (may vary based on legacy syntax/vs not + gradle version)

@mindstorms6
mindstorms6 / how.md
Created December 5, 2018 05:05
ChromeOS Docker

fix docker in chromeos: First up, make containerd start correctly:

sudo vim /lib/systemd/system/containerd.service

Comment out:

ExecStartPre=/sbin/modprobe overlay

Re-compile runc (path has made it upstream, but isn't released yet):

Keybase proof

I hereby claim:

  • I am mindstorms6 on github.
  • I am breland (https://keybase.io/breland) on keybase.
  • I have a public key whose fingerprint is 29BA 1BBA 07B1 B2B3 A2E2 6AB0 C761 B023 3291 365D

To claim this, I am signing this object:

@mindstorms6
mindstorms6 / codecommit_call_bitrise.js
Created March 12, 2016 18:28
BitRise + Lambda + CodeCommit
var https = require('https');
/**
* Calls bitrise to build your app, using the most recent commit
*/
var BITRISE_API_TOKEN="";
var BITRISE_APP="";
var BRANCH="master";