View docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
networks: | |
backend: {} | |
outbound: {} | |
tailnet: | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.20.0.0/16 |
View delink.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vim: set ai et ts=4 sts=4 sw=4 syntax=bash: | |
# -*- coding: utf-8 -*- | |
export DEBUG=no | |
export REMOVE_AFTER_DELINK=no | |
export SOURCE= | |
set -euo pipefail |
View smtp_chat_timer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
import enum | |
import itertools | |
import smtplib | |
import time | |
import threading | |
import textwrap |
View ffcp2017-klipper-printer.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains common pin mappings for the FlashForge-Creator-Pro | |
# To use this config, the firmware should be compiled for | |
# the Atmel atmega2560. | |
# Use the following command to flash the board: | |
# avrdude -c stk500v2 -p m2560 -P /dev/serial/by-id/usb-MakerBot_Industries_The_Replicator_557373136313514061A2-if00 -b 57600 -D -U out/klipper.elf.hex | |
# See docs/Config_Reference.md for a description of parameters. | |
[include mainsail.cfg] |
View multitail.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# from __future__ import annotations | |
import io | |
import logging | |
import os | |
import sys | |
from tempfile import mkstemp | |
from typing import List |
View delink.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vim: set ai et ts=4 sts=4 sw=4 syntax=bash: | |
# -*- coding: utf-8 -*- | |
export DEBUG=no | |
export REMOVE_AFTER_DELINK=no | |
export SOURCE= | |
set -euo pipefail |
View docker-compose.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker run -it --rm \ | |
--privileged \ | |
--net=host \ | |
-v "$PWD":"/workdir/$PWD" \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
--workdir="/workdir/$PWD" \ | |
docker/compose:latest \ | |
docker-compose $* |
View apt_collector.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim: set ai et ts=4 sts=4 sw=4: | |
import apt | |
import argparse | |
import os | |
import pathlib | |
import shutil | |
import sys |
View filebeat_sd_notify_wrapper.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CONNECT_TIMEOUT=${HTTP_CONNECT_TIMEOUT:-1} | |
HTTP_ADDR=${FILEBEAT_HTTP_ADDR:-http://localhost:5066/} | |
REPORT_TIME=$(($WATCHDOG_USEC / 2000000)) | |
SD_NOTIFY=${SD_NOTIFY_PATH:-/bin/systemd-notify} | |
set -euo pipefail | |
function watchdog() { |
View envmgr.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# -*- coding: utf-8 -*- | |
# vim: set ai et ts=4 sts=4 sw=4 syntax=zsh: | |
set -o pipefail | |
function __ensure_envdir() { | |
[[ ! -d "${HOME}/.envmgr.d/" ]] && mkdir -p "${HOME}/.envmgr.d/" | |
return 0 | |
} |
NewerOlder