-
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,
This file contains 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
SELECT | |
CAST(SUM(ZMEDIADURATION) / 60 / 60 AS INT) AS listened_hours, | |
ZPODCAST.ZTITLE as podcast, | |
ZURL as url | |
FROM | |
ZPODCAST, | |
ZPODCASTEPISODE | |
WHERE | |
ZPODCASTEPISODE.ZPODCASTFOREPISODE == ZPODCAST.Z_PK | |
AND |
This file contains 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
{{ printf "%#v" . }} |
This file contains 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
# see also https://github.com/go-delve/delve/tree/master/Documentation/api/dap | |
go build -o plaintweet-darwin \ | |
&& dlv exec --headless --log --api-version 2 --listen localhost:42353 -- ./plaintweet-darwin serve |
This file contains 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
# adapted from https://twitter.com/David3141593/status/1509457643206811652 | |
pbpaste | qrencode -o - | open -fa Preview | |
# terminal only | |
pbpaste | qrencode -t UTF8 -o - |
This file contains 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
pbpaste | xargs -I {} qrencode -t UTF8 -o - 'otpauth://totp/github.com/suhlig?secret={}&issuer=GitHub' |
This file contains 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
{% 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') }} |
This file contains 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
- task: fail-for-inspection | |
config: | |
platform: linux | |
image_resource: { type: mock, source: { mirror_self: true } } | |
run: { path: sh, args: [ -c , "false" ] } |
This file contains 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(" => ")' |
This file contains 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 | |
" | |