Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -eu
[ -z "$4" ] && echo "Usage: $0 <gc-project> <zone-name> <domain-name> <value>" && exit 1
TYPE=A
PROJECT=$1
ZONE=$2
TARGET=$3
IP=$4
@synchrone
synchrone / index.ts
Last active July 11, 2019 12:32
TypeDI Inject conflict repro
import 'reflect-metadata'
import {Container, Inject, Service} from "typedi";
@Service()
export class Bla {}
const testconfig = {}
type ConfigType = typeof testconfig
@Service()
@synchrone
synchrone / proxmox on schedule.md
Last active September 13, 2021 14:46
Proxmox settings
cat <<EOF > /etc/systemd/system/wol.service
[Unit]
Description=Configure Wake On LAN

[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s enp2s0 wol g

[Install]
process.argv.length>1 && import.meta.url.endsWith(process.argv[1]) && Promise.resolve().then(async () => {
});