Skip to content

Instantly share code, notes, and snippets.

View isonet's full-sized avatar

Paul Biester isonet

View GitHub Profile
@isonet
isonet / BackupRotated
Created December 22, 2024 22:58 — forked from bigbosst/BackupRotated
A simple rotational backup script that will rotate daily, weekly, monthly, and yearly backups.
#!/bin/bash
SRC_DIR="/var/www/html"
BACKUP_DIR="/mnt/backups"
PROJECT_NAME="project"
BACKUP_RETENTION_DAILY=6
BACKUP_RETENTION_WEEKLY=3
BACKUP_RETENTION_MONTHLY=3
BACKUP_RETENTION_YEARLY=0
@isonet
isonet / LogUtil.java
Last active March 22, 2019 12:04
Pure Java based Logback / SLF4J configuration (no logback.xml) with support for logstash
package fr.isonet;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.encoder.PatternLayoutEncoder;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.ConsoleAppender;
import ch.qos.logback.core.rolling.RollingFileAppender;
import ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy;
@isonet
isonet / dell display manager command line documentation
Created January 31, 2019 20:30 — forked from s4wny/dell display manager command line documentation
dell display manager command line documentation
===============================================
Dell Display Manager
===============================================
Command language
-----------------------------------
A rich and flexible command language is supported via the
command-line, and command-line arguments can be combined.
Where appropriate, a specific display can be targeted by
prefacing the command with the display number, e.g.,

Muffins aux myrtilles

Pour 12 muffins:

  • 250g de Myrtilles
  • 250g de farine
  • 3 CàC de levure
  • 1 Oeuf
  • 140g de sucre
  • Zeste d'orange ou citron râpé