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
#!/bin/bash | |
# Simple script to delete files older than specific number of days from FTP. Provided AS IS without any warranty. | |
# This script use 'lftp'. And 'date' with '-d' option which is not POSIX compatible. | |
# FTP credentials and path | |
FTP_HOST="ftp.host.tld" | |
FTP_USER="usename" | |
FTP_PASS="password" | |
FTP_PATH="/ftp/path" | |
# Full path to lftp executable |
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
#!/bin/bash | |
# Script to create dummy files with dates in past | |
# Count of months and weeks must not be greater than 99, count of days must not be greater than 999 | |
### CONFIG BEGIN ### | |
# Count of files to create, including current month, week and day | |
MONTHS=12 | |
WEEKS=10 |
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
Pillar | |
acme_sh: | |
hatifnatt: | |
userconf: | |
accountemail: [email protected] | |
test: True | |
certconf: | |
domain.tld: | |
altnames: | |
- www.domain.tld |
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 | |
# Inspired by http://whatizee.blogspot.com/2016/10/zabbix-history-table-clean-up.html | |
# This scrip clean history* and trends* tables. It will copy "right" data to new tables | |
# and then drop old bloated ones. | |
# Enable debug | |
#set -x | |
DATE_MINUS_3M=$(date -d "now -3months" +%Y-%m-%d) |
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
[DEBUG ] Reading configuration from /etc/salt/cloud | |
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Including configuration from '/etc/salt/master.d/engine.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/engine.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/f_defaults.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/f_defaults.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/lxc_profiles.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/lxc_profiles.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf' |