Skip to content

Instantly share code, notes, and snippets.

View tyrm's full-sized avatar

Tyr Mactire tyrm

View GitHub Profile
#!/bin/bash
. readdit.env
USER_LIST="users.list"
FOLDER_SCHEME="{REDDITOR}"
FILE_SCHEME="{DATE}+{SUBREDDIT}+{POSTID}"
NORD_SLEEP=90
---
version: '3.7'
services:
wordpress:
image: wordpress:6
ports:
- 8846:80/tcp
env_file:
- /volume/docker/pzg-wordpress/env
fan:
- platform: template
fans:
box_fan_1:
friendly_name: "box_fan_1"
unique_id: "box_fan_1_4pm"
value_template: >
{% if is_state('switch.box_fan_1_high', 'on') %}
on
{% elif is_state('switch.box_fan_1_medium', 'on') %}
#!/bin/bash -e
# source config
. ~/.syncconf
REPO_ID=$1
if [ -z "$REPO_ID" ]; then
echo "Repo ID is empty."
exit 1
fi
@tyrm
tyrm / gist:6709892f16290bc66958145d566beb17
Last active November 30, 2023 23:25
i spent too much time on this
#!/bin/bash
FILES="users.yaml users2.yaml users3.yaml"
OUTPUT_FOLDER=./files/
. venv/bin/activate
# The log file where the output will be stored
LOG_FILE=./logs/users_$(date +%s).log
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
#!/bin/bash
echo
echo "*******************"
echo "* Pull New Images *"
echo "*******************"
echo
docker-compose pull
echo
upstream pettingzoo-co_leader {
server localhost:28008;
}
upstream pettingzoo-co_worker_client {
hash $upstream_http_authentication;
server localhost:28081;
server localhost:28082;
}
---
version: '3.7'
x-logging-common: &logging-common
logging:
driver: "loki"
options:
mode: "non-blocking"
max-buffer-size: "64m"
loki-url: "http://xxx.xxx.xxx.xxx:3100/loki/api/v1/push"
EXTERNAL_HOSTNAME=relay.example.com
HTTP_BIND=127.0.0.1:5000
RUNNER_CONCURRENCY=5
ENCRPYTION_KEY=longrandomstring
TOKEN_SALT=differentlongrandomstring
DB_TYPE=postgres
DB_ADDRESS=postgres