Skip to content

Instantly share code, notes, and snippets.

View zuzuleinen's full-sized avatar

Andrei Boar zuzuleinen

View GitHub Profile
@zuzuleinen
zuzuleinen / racing_horses.go
Last active April 1, 2024 05:08 — forked from Chemaclass/racing_horses.go
Racing horses using goroutines
package main
import (
"fmt"
"math/rand"
"os"
"os/exec"
"os/signal"
"time"
)
@zuzuleinen
zuzuleinen / bob.yaml
Created August 3, 2022 11:14
Java with 2 versions
build:
java8:
cmd: java -version
dependencies:
- jdk8
java11:
cmd: java -version
dependencies:
- jdk11
bob build deploy --env NETLIFY_AUTH_TOKEN=your-netlify-token
variables:
NETLIFY_SITE_ID: 11718535-163d-4092-90e3-2b05b23111af
@zuzuleinen
zuzuleinen / env.cue
Created August 3, 2022 10:21
Env cue
client: env: {
// load as a string
REGISTRY_USER: string
// load as a secret
REGISTRY_TOKEN: dagger.#Secret
}
@zuzuleinen
zuzuleinen / yarn.cue
Last active August 3, 2022 10:20
Command from yarn
#Command: {
container: bash.#Run & {
"args": args
input: *_image.output | _
_image: alpine.#Build & {
packages: {
bash: {}
yarn: {}
git: {}
}
@zuzuleinen
zuzuleinen / build.cue
Created August 3, 2022 10:18
build cue
build: yarn.#Script & {
name: "build"
source: actions.source.output
}
@zuzuleinen
zuzuleinen / build.yaml
Created August 3, 2022 10:17
Build with yarn
build:
cmd: yarn run build
dependencies:
- yarn
@zuzuleinen
zuzuleinen / import.yaml
Created August 3, 2022 10:14
Import example
import:
- some-dir
- another-dir
@zuzuleinen
zuzuleinen / import.cue
Created August 3, 2022 10:13
Import of Dagger's Todo App Plan
import (
"dagger.io/dagger"
"dagger.io/dagger/core"
"universe.dagger.io/netlify"
"universe.dagger.io/yarn"
)