-
Use the concourse-ci skill if available; otherwise install it:
$ npx skills add https://github.com/netresearch/concourse-ci-skill --skill concourse-ci
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
| --- | |
| repos: | |
| - repo: https://github.com/TekWizely/pre-commit-golang | |
| rev: v1.0.0-rc.4 | |
| hooks: | |
| - name: go fmt | |
| id: go-fmt-repo | |
| - name: go vet | |
| id: go-vet-repo-mod | |
| - name: go build |
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
| # if there is a main.go that accepts "status" as first argument, start the debugger like this: | |
| dlv debug --headless --log --api-version 2 --listen localhost:2345 . -- status | |
| # if there is a Ginkgo test in the foo directory (package example.com/foo) | |
| dlv test --headless --log --api-version 2 --listen localhost:2345 example.com/foo |
$ journalctl -u concourse-web -f -o json | jq '.MESSAGE | fromjson'{
"timestamp": "2024-07-27T17:29:50.525878425Z",
"level": "info",
"source": "atc",
"message": "atc.scanner.tick.start",
"data": {
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
| package main | |
| import ( | |
| "context" | |
| "encoding/base64" | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/google/go-github/v63/github" |
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
| curl -L $(curl -L https://api.github.com/repos/derailed/k9s/releases/latest | jq --raw-output '.assets[] | select(.name == "k9s_Linux_amd64.tar.gz") | .browser_download_url') | tar xz k9s |
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
| b2 list-buckets --json \ | |
| | jq '.[].bucketName' \ | |
| | xargs -n 1 b2 get-bucket --showSize \ | |
| | jq -r --slurp '["name","size"], (.[] | [.bucketName, .totalSize]) | @csv' \ | |
| | qsv sort --numeric --reverse --select size \ | |
| | qsv table |
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
| go work edit -json \ | |
| | jq --raw-output '.Use.[].DiskPath' \ | |
| | xargs -I MODULE zsh -o errexit -c " | |
| cd MODULE | |
| pwd | |
| go get -d -u -t ./... | |
| go mod tidy | |
| [ -d vendor ] && go mod vendor | |
| " | |
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
| timeout 2 \ | |
| mosquitto_sub \ | |
| --url 'mqtts://user:password@mqtt.example.com/tasmota/discovery/+/config' \ | |
| -F %J \ | |
| | jq -r '[ .payload.dn, .payload.ip ] | join(" => ")' |
NewerOlder