-
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 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
pbpaste | xargs -I {} qrencode -t UTF8 -o - 'otpauth://totp/github.com/suhlig?secret={}&issuer=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
# adapted from https://twitter.com/David3141593/status/1509457643206811652 | |
pbpaste | qrencode -o - | open -fa Preview | |
# terminal only | |
pbpaste | qrencode -t UTF8 -o - |
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
# 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 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
{{ printf "%#v" . }} |
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
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ arp -na | grep -e "b8:27:eb" -e "dc:a6:32" -e "e4:5f:01"
from https://smallstep.com/blog/build-a-tiny-ca-with-raspberry-pi-yubikey/
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
-- start sqlite monitor with _histdb_query | |
-- most-often used commands; top ones at the bottom | |
SELECT | |
commands.argv, count(*) as invocation_count | |
FROM | |
history | |
LEFT JOIN | |
commands | |
ON |
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
steampipe query --output json " | |
select | |
title, url, 'https://news.ycombinator.com/item?id=' || id as comments_url | |
from | |
hackernews_top | |
where | |
time > current_date - interval '24 hour' | |
order by | |
score desc | |
limit |