This doc has been moved to A Google doc to allow easier commenting and collaboration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Go here to create or refresh an API key and API secret and paste them: | |
# https://profile.timeular.com/#/app/account | |
# Put this in your ~/.timeular.config | |
# API_KEY="..." | |
# API_SECRET="..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import fileinput | |
from re import sub | |
deletemode = False | |
codemode = False | |
asmmode = False | |
breakmode = False |
Install Strimzi on Minishift
- start minishift with a profile named
kafka
on macOS
minishift --profile kafka start --vm-driver=xhyve --memory=7000 --cpus=4 --disk-size=50g
on linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Definition | |
/* | |
func test() { | |
account := app.AccountSingle{} | |
account.Data.ID | |
account.Data.Type | |
account.Data.Attributes.Name | |
account.Data.Relationships.OwnedBy | |
account.Data.Relationships.OwnedBy.Meta | |
account.Data.Relationships.OwnedBy.Related |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db := requires.Resource(t, Database) | |
space, wis := requires.Objects(t, Space(1), WorkItems(3, ExtraLongTitle())) | |
func ExtraLongTitle() { | |
return func(wi *WorkItem) { | |
wi.Data.Attributes["system.title"] = ".. long thing.." | |
} | |
} |
I'm trying to deploy buildbot on kubernetes because:
- I couldn't find anybod else that had done it.
- I wanted to learn how to deploy something more complicated than Nginx
- It looked like good blogpost material.
I found https://docs.buildbot.net/current/tutorial/docker.html and specifically https://github.com/buildbot/buildbot-docker-example-config. It's a docker-compose config which I'm trying to map to a K8s setup.
On Minikube I got a few things working:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ALMRelationship describes the basic relationship | |
var ALMRelationship = Type("ALMRelationship", func() { | |
Attribute("data", ArrayOf(Any)) | |
}) | |
// ALMLink describes a single linked resource | |
var ALMLink = Type("ALMLink", func() { | |
Attribute("href", Integer, "Unique numeric representation of the error") | |
Attribute("meta", HashOf(String, Any), "Related meta information") | |
}) |
Syntax: cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'
Example: To get json record having _id equal 611
cat my.json | jq -c '.[] | select( ._id | contains(611))'
Remember: if JSON value has no double quotes (eg. for numeric) to do not supply in filter i.e. in contains(611)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: using-gcc using-gcc-static using-clang | |
using-gcc: | |
g++-4.8 -o main-gcc -lasan -O -g -fsanitize=address -fno-omit-frame-pointer main.cpp && \ | |
ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) ./main-gcc | |
using-gcc-static: | |
g++-4.8 -o main-gcc-static -static-libstdc++ -static-libasan -O -g -fsanitize=address -fno-omit-frame-pointer main.cpp && \ | |
ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) ./main-gcc-static |
NewerOlder