Skip to content

Instantly share code, notes, and snippets.

@alexberry
alexberry / ua.txt
Created March 1, 2024 10:47
problem-ua-string
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
@alexberry
alexberry / debug.log
Created June 9, 2023 10:35
cloudflare origin_ca_certificate documentation debug log
2023-06-09T11:32:43.538+0100 [INFO] Terraform version: 1.4.6
2023-06-09T11:32:43.538+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.21.0
2023-06-09T11:32:43.538+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-06-09T11:32:43.538+0100 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-06-09T11:32:43.538+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-06-09T11:32:43.538+0100 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-06-09T11:32:43.538+0100 [INFO] Go runtime version: go1.19.6
2023-06-09T11:32:43.538+0100 [INFO] CLI args: []string{"/opt/homebrew/Cellar/tfenv/3.0.0/versions/1.4.6/terraform", "plan"}
2023-06-09T11:32:43.538+0100 [DEBUG] Attempting to open CLI config file: /Users/alexberry/.terraformrc
2023-06-09T11:32:43.538+0100 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
@alexberry
alexberry / instance_configs.cfg
Last active March 3, 2023 09:20
GCP Consistent snapshots for linux
# As per https://cloud.google.com/compute/docs/disks/creating-linux-application-consistent-pd-snapshots
# Append to existing file
# /etc/default/instance_configs.cfg
[Snapshots]
enabled = true
timeout_in_seconds = 60
@alexberry
alexberry / westinghouse-ha.ino
Last active August 2, 2022 18:53
Westinghouse 6/ID6 Arduino Home Assistant
#include <ESP8266WiFi.h>
// https://github.com/dawidchyrzynski/arduino-home-assistant
#include <ArduinoHA.h>
// https://github.com/crankyoldgit/IRremoteESP8266
#include <IRremoteESP8266.h>
#include <IRsend.h>
const uint16_t kIrLed = 4;
IRsend irsend(kIrLed);