Skip to content

Instantly share code, notes, and snippets.

@xrstf
xrstf / freshservice-without-adhd.css
Last active April 12, 2022 12:18
Fix FreshService's terribly distracting UI
/* disable spinning effects */
.flip-front, .flip-back {
animation: none !important;
}
/* disable constant product update notifications */
#quick_help_container {
display: none !important;
}
@xrstf
xrstf / main.go
Created May 1, 2022 21:34
BME280 RPi Fan Controller
package main
import (
"context"
"fmt"
"log"
"os"
"os/signal"
"strconv"
"time"
@xrstf
xrstf / main.go
Created August 1, 2023 16:48
kcp tree with controller-runtime
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"regexp"
"strings"
@xrstf
xrstf / go.mod
Last active September 22, 2023 16:26
Resolve Refs in OpenAPI3 spec
module testmodule
go 1.21.0
require github.com/getkin/kin-openapi v0.120.0
require (
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/invopop/yaml v0.2.0 // indirect
@xrstf
xrstf / build.sh
Last active January 9, 2024 13:45
Generate Kubernetes GCP cloud-controller-manager.yaml
#!/usr/bin/env bash
set -euo pipefail
# This script should be placed in the root of the cloud-controller-gcp working copy.
cd $(dirname $0)
set -x
# re-generating the bazel output takes foreeeeeeever, so be careful when you
@xrstf
xrstf / dum.sh
Created March 17, 2024 23:14
Drum!
#!/usr/bin/env bash
#
# Drum!
#
# Cause the repeated "docker run --rm -it" always sounds
# like "drumit" in my head.
#
# This script makes it easy to start a container.
#