$ 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": {
$ 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": {
package main | |
import ( | |
"context" | |
"encoding/base64" | |
"fmt" | |
"log" | |
"os" | |
"github.com/google/go-github/v63/github" |
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 |
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 |
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 | |
" | |
timeout 2 \ | |
mosquitto_sub \ | |
--url 'mqtts://user:[email protected]/tasmota/discovery/+/config' \ | |
-F %J \ | |
| jq -r '[ .payload.dn, .payload.ip ] | join(" => ")' |
- task: fail-for-inspection | |
config: | |
platform: linux | |
image_resource: { type: mock, source: { mirror_self: true } } | |
run: { path: sh, args: [ -c , "false" ] } |
{% set SENSOR = 'device_tracker.hexa' -%} | |
{{ SENSOR }} manufactured by {{ device_attr(SENSOR, 'manufacturer') }} | |
Attributes: | |
{% for attr in states[SENSOR].attributes -%} | |
- {{ attr }}: {{state_attr(SENSOR, attr)}} | |
{% endfor %} | |
hexa has {{ state_attr('device_tracker.hexa', 'AP SSID') }} |
Container count by pipeline
$ fly -t uh cs --json | jq -r '[group_by(.pipeline_name)[] | {(.[0].pipeline_name): length }] | add'
{
"concourse-resource-proxy": 2,
"concourse-rss-resource": 2,
"env-sensors": 7,
"forwardemail-webhook-rs": 2,
"mosquitto-prometheus-exporter": 7,