Skip to content

Instantly share code, notes, and snippets.

View redbaron's full-sized avatar

Maxim Ivanov redbaron

View GitHub Profile
# Writing component at 'components/generic-app'
# Error reading /tmp/tmp.QYGj9CyWkO/app/environments/default/main.jsonnet: INTERNAL ERROR: (CRASH) runtime error: index out of range
# goroutine 1 [running]:
# runtime/debug.Stack(0xc42651a8e8, 0x10a5180, 0x1988130)
# /usr/local/go/src/runtime/debug/stack.go:24 +0xa7
# github.com/ksonnet/ksonnet/vendor/github.com/google/go-jsonnet.(*VM).evaluateSnippet.func1(0xc426521828)
# /go/src/github.com/ksonnet/ksonnet/vendor/github.com/google/go-jsonnet/vm.go:94 +0x6e
# panic(0x10a5180, 0x1988130)
# /usr/local/go/src/runtime/panic.go:491 +0x283
# github.com/ksonnet/ksonnet/vendor/github.com/google/go-jsonnet.(*interpreter).evaluate(0xc420369d60, 0x193c680, 0xc420b29580, 0x1, 0x4, 0xc420b31710, 0x0, 0x0)
@redbaron
redbaron / example.yaml
Last active March 24, 2020 13:06
Ansible jsonnet filter
- name: Load kube-apiserver.yaml
slurp:
src: "{{tmpconfdir.path}}/etc/kubernetes/manifests/kube-apiserver.yaml"
register: "apiserver_yaml"
# Implement https://github.com/kubernetes/kubeadm/issues/1105#issuecomment-544887733
- name: Patch apiserver healthcheck
vars:
mixin: |
{spec+: {containers: [super.containers[0] + {
@redbaron
redbaron / .gitdepsignore
Last active September 25, 2024 17:45
Unreal on Mac minimal setup
# add this to the root of UE clone as .gitdepsignore to reduce download size
# every line is turned into regex by converting globs (*, **, ?) to a regex ([^/]*, .*, .).
# every line starting with / is prefixed with ^
# every line NOT ending with / has suffix $
ThirdParty/CEF3/
ThirdParty/ICU/
# ThirdParty/Mono/Mac
ThirdParty/PhysX3/
Python*/
ThirdParty/svn/
@redbaron
redbaron / Dockerfile
Created August 15, 2023 09:33
Local telegraf build
FROM golang:1.21 AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/root/.cache/go-build,rw go mod download
COPY . ./