Skip to content

Instantly share code, notes, and snippets.

@brtkwr
brtkwr / README.md
Last active February 15, 2026 14:45
Google Apps Script to fetch Twilio usage data into a spreadsheet

Twilio Usage Google Apps Script

Fetches daily Twilio usage data into a Google Sheets spreadsheet.

Features

  • Pulls daily usage data for the past year
  • Breaks down costs by category (SMS outbound, inbound, pumping protection, phone numbers, calls)
  • Incremental updates - only fetches missing dates, skips dates already in the sheet
  • Handles Twilio API pagination automatically
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Adoption Report - Jul 2025 to Jan 2026</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
* {
box-sizing: border-box;
@brtkwr
brtkwr / tf-apply-file.sh
Last active December 25, 2025 23:23
Usage: ./tf-apply-file.sh example.tf
#!/bin/bash
set -euo pipefail
if [ $# -eq 0 ]; then
echo "Usage: $0 <terraform-file.tf> [additional-terraform-args]"
exit 1
fi
# Check if terraform is available
@brtkwr
brtkwr / docker-compose.yaml
Created January 27, 2022 07:46
Node exporter via docker-compose.yaml
---
version: '3.3'
services:
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
set -x
export TEMPEST_CONFIG=/opt/stack/magnum/etc/tempest.conf
cp /opt/stack/tempest/etc/tempest.conf $TEMPEST_CONFIG
export IMAGE_ID=fedora-coreos-31.20200323.3.2-openstack.x86_64
#export IMAGE_ID=$(openstack image list --property os_distro=fedora-atomic --name $IMAGE_NAME -c ID -f value | head -1)
#export NIC_ID=$(openstack network show public -f value -c id)
crudini --set $TEMPEST_CONFIG magnum image_id $IMAGE_ID
crudini --set $TEMPEST_CONFIG magnum nic_id public
apiVersion: v1
kind: Namespace
metadata:
name: debug
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug-app
namespace: debug
14,15d13
< path = "/opt/kata/bin/qemu-virtiofs-system-x86_64"
< kernel = "/opt/kata/share/kata-containers/vmlinuz-virtiofs.container"
16a15,16
> path = "/mnt/storage-nvme/kata/qemu/x86_64-softmmu/qemu-system-x86_64"
> kernel = "/mnt/storage-nvme/kata/linux/arch/x86/boot/bzImage"
105c105
< virtio_fs_daemon = "/opt/kata/bin/virtiofsd"
---
> virtio_fs_daemon = "/mnt/storage-nvme/kata/qemu/virtiofsd"
diff --git a/fs/dax.c b/fs/dax.c
index 435f5b6..3a3be7d 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -976,8 +976,10 @@ int dax_writeback_mapping_range(struct address_space *mapping,
int ret = 0;
unsigned int scanned = 0;
- if (WARN_ON_ONCE(inode->i_blkbits != PAGE_SHIFT))
+ /*if (WARN_ON_ONCE(inode->i_blkbits != PAGE_SHIFT))
@brtkwr
brtkwr / K8s-Raw-Block-Kata.md
Created April 12, 2019 14:57 — forked from amshinde/K8s-Raw-Block-Kata.md
K8s Raw Block storage support with Kata

Running Kata Containers in Minikube for Kubernetes 1.14+

minikube is an easy way to try out a kubernetes (k8s) cluster locally. It utilises running a single node k8s stack in a local VM.

Kata Containers is an OCI compatible container runtime that runs container workloads inside VMs.

Wouldn't it be nice if you could use kata under minikube to get an easy out of the box experience to try out Kata? Well, turns out with a little bit of config and setup that is already supported, you can!