Skip to content

Instantly share code, notes, and snippets.

@twigley
twigley / kopia.service
Last active October 27, 2025 14:20
Kopia systemd service
[Unit]
Description=Kopia Server
After=syslog.target
After=network.target
OnFailure=systemd-failure-email@%n.service
[Service]
Type=simple
User=root
Restart=always
@twigley
twigley / gist:e5033f417359baca3508ef4184e4373b
Created January 25, 2023 10:02
Override Gcloud config with env vars
CLOUDSDK_<SECTION>_<PROPERTY>
e.g
CLOUDSDK_API_ENDPOINT_OVERRIDES_CONTAINER=127.0.0.1 gcloud composer environments run
or
CLOUDSDK_API_ENDPOINT_OVERRIDES_COMPOSER=127.0.0.1 gcloud composer environments run
etc. etc.
@twigley
twigley / Test Ansible snippets
Last active March 11, 2020 09:48
Test Ansible snippets
# Allows you to test results of small Ansible snippets in an isolated environment
docker run -it centos:7 bash
yum install -y epel-release.noarch
yum install -y ansible.noarch
vi test.yml
ansible localhost -m include_tasks -a test.yml