Skip to content

Instantly share code, notes, and snippets.

View zaggash's full-sized avatar
🕶️

Alexandre Pinon zaggash

🕶️
View GitHub Profile
# Cleaning logs.
if [ -f /var/log/audit/audit.log ]; then
cat /dev/null > /var/log/audit/audit.log
fi
if [ -f /var/log/wtmp ]; then
cat /dev/null > /var/log/wtmp
fi
if [ -f /var/log/lastlog ]; then
cat /dev/null > /var/log/lastlog
fi
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql
namespace: default
spec:
selector:
matchLabels:
app: mysql
serviceName: mysql
@zaggash
zaggash / automatic_backups.yaml
Last active April 17, 2024 22:43
Fork of jcwillox/automatic_backups.yaml adding input location
blueprint:
name: Automatic Backups
description: |
Create backups each day and keep them for a configurable amount of time, backups are stored less frequently the older they are.
By default all backups are full backups, besides the 3-hourly backups which only include the configuration.
**Template Variables:**
- `name` — backup name configured below
- `password` — backup password configured below
@zaggash
zaggash / count-arch-packages.json
Last active November 19, 2024 02:23
Custom shields.io Badges
{"label":"Packages count","message":"25","schemaVersion":1,"color":"blue","namedLogo":"Files","logoColor":"white","style":"for-the-badge"}
### Keybase proof
I hereby claim:
* I am zaggash on github.
* I am apinon (https://keybase.io/apinon) on keybase.
* I have a public key ASADl2LUJ5UKKkB49-ab-hiS0_QaALzsaq6TxU_-cRzIVwo
To claim this, I am signing this object: