-
Grep three lines....
# highlight `app:` kustomize build $BASE | grep -C 3 app: # Compare the output directly to see how staging and production differ:
ko
is a little unknown gem, lost in the GitHub maze.
ko
is widely used in knative development but somehow very little advocacy has been done around this tool.
It allows you to:
- build Go binaries
- containerize them and publish to a registry
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
// @ts-ignore | |
const fetch = require('node-fetch'); | |
function delay(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function* getBooksPaged({ q, pageSize, lastPageIndex }) { | |
let currentIndex = 0; | |
let isDone = false; |
Guide to setup tools to record your terminal and share.
- Install asciinema
# install asciinema with
brew install asciinema
# start recording with:
asciinema rec
# to finish hit Ctrl-D or type exit.
# start recording to a file
- Bash v5+ checkout Upgrading Bash on macOS
- bash-completion@2
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
@NoArg | |
@JsonIgnoreProperties(ignoreUnknown = true) | |
data class Request( | |
var AAA: String?, | |
var BBB : String?, | |
var CCC: String? | |
) { | |
constructor(raw: String): this(null,null, null) { | |
val mapper = jacksonObjectMapper() | |
val request = mapper.readValue<Request>(raw) |
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
version: '2.1' | |
services: | |
cassandra: | |
image: cassandra:latest | |
networks: | |
- reactive-network | |
volumes: | |
- cassandra_data:/var/lib/cassandra | |
# - ${PWD}/data/cassandra/data:/var/lib/cassandra |
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 bash | |
set -e | |
rm -rf ~/.gvm | |
rm -rf ~/.sdkman | |
curl -s get.sdkman.io | bash | |
echo sdkman_auto_answer=true > ~/.sdkman/etc/config |