Skip to content

Instantly share code, notes, and snippets.

View jritsema's full-sized avatar

John Ritsema jritsema

View GitHub Profile
@jritsema
jritsema / Backstage AWS Plugins.md
Created May 13, 2024 17:14
Backstage AWS Plugins
@jritsema
jritsema / frigate_0.10_notification.yaml
Last active February 6, 2023 03:03 — forked from hunterjm/frigate_0.10_notification.yaml
Frigate 0.10 Notifications
blueprint:
name: Frigate Notification (0.10.0)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements
@jritsema
jritsema / main.tf
Created August 12, 2022 22:19
Terraform Inside and Outside of Proton
resource "s3_bucket" "main" {
bucket = local.bucket
}
@jritsema
jritsema / lb.tf
Last active August 12, 2022 21:11
Using a Terraform Module Both Inside and Outside of Proton
resource "aws_alb" "main" {
name = local.name
internal = local.internal
subnets = split(",", local.internal == true ? local.private_subnets : local.public_subnets)
}
@jritsema
jritsema / Dockerfile
Last active July 27, 2021 22:53
linux-dev-container
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y zsh git vim wget curl unzip gpg make gcc language-pack-en && \
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true && \
rm $HOME/.zshrc
WORKDIR /root
RUN curl -sfL https://raw.githubusercontent.com/jritsema/home/main/clone.sh | zsh
$ docker build -t vscode .
Sending build context to Docker daemon 12.42MB
Step 1/18 : FROM node:10.15.1
10.15.1: Pulling from library/node
741437d97401: Pull complete
34d8874714d7: Pull complete
0a108aa26679: Pull complete
7f0334c36886: Pull complete
65c95cb8b3be: Pull complete
a36b708560f8: Pull complete
@jritsema
jritsema / main.go
Last active September 12, 2017 02:05
super simple golang web framework
package main
import (
"bytes"
"encoding/json"
"io"
"net/http"
)
// Headers is a map of string to string where the key is the key for the header
# bucket 
resource "aws_s3_bucket" "bucket" {
  bucket        = "${var.bucket}"
  force_destroy = "true"

  versioning {
    enabled = "true"
  }
@jritsema
jritsema / docker-compose.yml
Last active August 5, 2016 03:37
docker-compose.yml template
version: '2'
services:
service1:
build: .
image: service1:0.0.1
ports:
- "80:3000"
environment:
FOO: bar
aws_iam_user.es: Creating...
  arn:       "" => "<computed>"
  name:      "" => "srv_user1"
  path:      "" => "/"
  unique_id: "" => "<computed>"
aws_iam_user.es: Creation complete
aws_iam_access_key.es: Creating...
  secret:            "" => "<computed>"
  ses_smtp_password: "" => "<computed>"