Skip to content

Instantly share code, notes, and snippets.

View winpat's full-sized avatar

Patrick Winter winpat

View GitHub Profile
const std = @import("std");
const ArrayList = std.ArrayList;
const Allocator = std.mem.Allocator;
const TestAllocator = std.testing.allocator;
const t = std.testing;
const Token = struct {
tag: Tag,
value: ?[]const u8 = null,
@winpat
winpat / output.txt
Created October 18, 2020 20:12
Unable to inject ceb into image with nix-based waypoint build
~/vcs/waypoint-examples/docker/python (main) waypoint up -vv
2020-10-18T22:00:11.928+0200 [INFO] waypoint: waypoint version: full_string="Waypoint edf37a0 (edf37a0+CHANGES)" version=edf37a0 prerelease= metadata= revision=edf37a0+CHANGES
2020-10-18T22:00:11.929+0200 [DEBUG] waypoint: home configuration directory: path=/home/patrick/.config/waypoint
2020-10-18T22:00:11.930+0200 [INFO] waypoint.server: attempting to source credentials and connect
2020-10-18T22:00:11.960+0200 [DEBUG] waypoint.server: connection established with sourced credentials
2020-10-18T22:00:11.963+0200 [INFO] waypoint: server version info: version=v0.1.2 api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2020-10-18T22:00:11.963+0200 [INFO] waypoint: negotiated api version: version=1
2020-10-18T22:00:11.963+0200 [DEBUG] waypoint: will operate on app: name=example-python
2020-10-18T22:00:11.963+0200 [INFO] waypoint: local mode, starting local runner
2020-10-18T22:00:11.963+0200 [DEBUG] waypoint.runner: registering runner
@winpat
winpat / Error.txt
Last active May 11, 2020 12:01
Aeson parsing problem
src/Main.hs:50:38-51: error: Parse error in pattern: parseJSON
|
50 | for (HM.toList o) \((_, args) -> parseJSON args)
| ^^^^^^^^^^^^^^
@winpat
winpat / elasticsearch
Created July 31, 2015 09:05
Elasticsearch SysV Init Script (SLES11 SP3)
#!/bin/sh
#
# elasticsearch <summary>
#
# chkconfig: 2345 80 20
# description: Starts and stops a single elasticsearch instance on this system
#
### BEGIN INIT INFO
# Provides: Elasticsearch