Skip to content

Instantly share code, notes, and snippets.

View jeroendk's full-sized avatar

Jeroen de Kok jeroendk

View GitHub Profile
config:
target: "http://127.0.0.1:5060"
phases:
- duration: 50
arrivalRate: 40
scenarios:
- engine: "socketio"
flow:
- think: 70
# - emit:
@jeroendk
jeroendk / mysqldump_cron.sh
Last active October 21, 2019 07:35 — forked from grahampugh/mysqldump_cron.sh
Script to create daily, weekly and monthly mysqldumps and delete old ones (on Jelastic MySQL node)
#!/bin/bash
STORE_FOLDER="/var/lib/jelastic/backup"
MYSQL_USER="root"
MYSQL_PASS="$(cat /home/jelastic/my.pass)"
TODAY=$(date +"%Y-%m-%d")
DAILY_DELETE_NAME="daily-"`date +"%Y-%m-%d" --date '7 days ago'`
WEEKLY_DELETE_NAME="weekly-"`date +"%Y-%m-%d" --date '5 weeks ago'`
MONTHLY_DELETE_NAME="monthly-"`date +"%Y-%m-%d" --date '12 months ago'`