Skip to content

Instantly share code, notes, and snippets.

View StarpTech's full-sized avatar

Dustin Deus StarpTech

View GitHub Profile
service:
enabled: true
type: LoadBalancer
# Additional annotations (e.g. for cloud provider specific config)
annotations:
load-balancer.hetzner.cloud/location: nbg1
# ensure that the load balancer communicates via private network
load-balancer.hetzner.cloud/use-private-ip: "true"
# ensures that the load balancer is not removed
load-balancer.hetzner.cloud/name: "traefik"
@StarpTech
StarpTech / script.mjs
Last active September 25, 2021 09:58
ZX script to prefix the PR title with the linear ticket from the branch name or PR description. Can only run in GitHub CI.
#!/usr/bin/env zx
let token = process.env.GITHUB_TOKEN;
let branchName = process.env.GITHUB_HEAD_REF;
let pullNumber = process.env.PULL_NUMBER;
let apiUrl = process.env.GITHUB_API_URL;
let repo = process.env.GITHUB_REPOSITORY;
let issuePrefix = process.env.ISSUE_PREFIX
let allowFailure = process.env.ALLOW_FAILURE
@StarpTech
StarpTech / docker-network-fix.sh
Created December 13, 2021 20:42
Change docker network daemon defaults to avoid DNS collisions
#!/bin/bash
set -e
cat <<EOT >> /etc/docker/daemon.json
{
"bip": "172.31.0.1/16",
"default-address-pools":
[
{"base":"172.32.0.0/16","size":24}
]