Skip to content

Instantly share code, notes, and snippets.

@paul-civitas
paul-civitas / gist:e65280b303eb4465c3938b60c769c0e7
Created June 2, 2025 21:56
Error log of abetlen/llama-cpp-python build
STEP 1/7: FROM quay.io/fedora/fedora:42
STEP 2/7: run dnf group install development-tools -y
--> Using cache 3cc6e814e3f1312cf0fd0d953e1362d58eea2fee41206e92d586a56a7d298581
--> 3cc6e814e3f1
STEP 3/7: run dnf install uv g++ -y
--> Using cache 2947aa08022e77ad2aaa6dcd9be692541c8c9585a8580dd4ac9c72bb57a86fa7
--> 2947aa08022e
STEP 4/7: run python3 --version
--> Using cache 3b63e5deea1fc3e8fde2500ec24256f3801c7a75a422bd52a38219949087584f
--> 3b63e5deea1f
bucket_list=$(aws s3api list-buckets --no-paginate | jq -r '.Buckets[].Name')
while read -r bucket ; do
echo -n "${bucket},"
aws cloudwatch get-metric-statistics --namespace AWS/S3 --start-time "$yesterday" --end-time "$current_time" --period 86400 --statistics Average --region us-east-1 --metric-name BucketSizeBytes --dimensions Name=BucketName,Value=$bucket Name=StorageType,Value=StandardStorage | jq '(.Datapoints[0].Average // 0)'
done <<< "$bucket_list"
# The containers configuration file specifies all of the available configuration
# command-line options/flags for container engine tools like Podman & Buildah,
# but in a TOML format that can be easily modified and versioned.
# Please refer to containers.conf(5) for details of all configuration options.
# Not all container engines implement all of the options.
# All of the options have hard coded defaults and these options will override
# the built in defaults. Users can then override these options via the command
# line. Container engines will read containers.conf files in up to three
# locations in the following order:
# 1. /usr/share/containers/containers.conf
@paul-civitas
paul-civitas / grouphack.tf
Created May 31, 2022 17:01
Hack to get twingate group information from terraform
# export TF_VAR_TWINGATE_API_TOKEN="$TWINGATE_API_TOKEN"
variable TWINGATE_API_TOKEN {
type = string
}
locals {
twingate-query-string = <<EOT
{
groups {
edges {