Skip to content

Instantly share code, notes, and snippets.

View alexanderdavidsen's full-sized avatar

Alexander Holte-Davidsen alexanderdavidsen

View GitHub Profile
@alexanderdavidsen
alexanderdavidsen / fetch-aws-spotprice.bash
Last active January 14, 2025 03:37
Bash script to fetch AWS spot pricing
#!/usr/bin/env bash
# Colors
BLUE='\033[0;34m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
BOLD='\033[1m'
# Place a copy of this config to ~/.aerospace.toml
# After that, you can edit ~/.aerospace.toml to your liking
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
# You can use it to add commands that run after AeroSpace startup.
# 'after-startup-command' is run after 'after-login-command'
@alexanderdavidsen
alexanderdavidsen / guard.json
Created April 5, 2018 10:44
Sample Grafana dashboard for Guard using prometheus as a data source
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@alexanderdavidsen
alexanderdavidsen / values.yaml
Last active April 5, 2018 10:45
Guard serviceMonitor for prometheus-operator
# Creates a serviceMonitor for Guard. Can be used with prometheus-operator:
prometheus:
serviceMonitors:
- name: guard
labels:
prometheus: kube-prometheus
selector:
matchLabels:
app: guard

Keybase proof

I hereby claim:

  • I am alexanderdavidsen on github.
  • I am alexanderdav (https://keybase.io/alexanderdav) on keybase.
  • I have a public key ASAvX2JSVC0ueylYpEdsql11yfhAjmXCDdzkLkoPp1DijQo

To claim this, I am signing this object: