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
// ==UserScript== | |
// @name Supprimer bannier abonnement + popup | |
// @version 0.5 | |
// @match https://www.lemonde.fr/* | |
// @icon https://www.google.com/s2/favicons?domain=lemonde.fr | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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/python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Clone and update all gitlab repositories, based on defined filters (current are your own private repsitories) | |
Repositories are cloned using SSH and SSH_KEY (automaticaly generated if not exists). | |
The SSH key will be automaticaly added as deployement key on each project | |
Requires : | |
- gitpython |
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 | |
mdadm="/sbin/mdadm" | |
logfile="/tmp/raid_report.tmp" | |
email="your_email@your_domain.com" | |
subject="RAID Status Report for `hostname -f`" | |
drives="md0 md1" | |
### Set email body ### | |
echo "<h2>$subject</h2>" > $logfile |
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/sh | |
### Parameters ### | |
smartctl="/usr/sbin/smartctl" | |
logfile="/tmp/smart_report.tmp" | |
email="your_email@your_domain.com" | |
subject="SMART Status Report for `hostname -f`" | |
drives="sda sdb" | |
tempWarn=40 | |
tempCrit=45 |
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 | |
MUSER="$1" | |
MPASS="$2" | |
MDB="$3" | |
# Detect paths | |
MYSQL=$(which mysql) | |
AWK=$(which awk) | |
GREP=$(which grep) | |
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 | |
if [ $# -eq 1 ] && [ $1 = "usage" ]; then | |
echo "Usage: $0 FQDN NEW_USERNAME USER_PASSWORD SSID PASSPHRASE COUNTRY KEYBOARD_LAYOUT TIMEZONE" | |
echo "Example: $0 rasbperry.home.local remy remy My-Wifi My-WiFiPassPhra5s3 FR fr \"Europe/Paris\"" | |
exit 0 | |
fi | |
if [ $# -ne 8 ]; then | |
# Configuring keyboard |
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
# Build Requirements | |
apt install -y libsystemd-dev cmake make build-essential pkg-config libssl-dev libboost-all-dev bison flex default-libmysqlclient-dev libyajl-dev libedit-dev nagios-plugins | |
# User and groups | |
groupadd icinga | |
groupadd icingacmd | |
useradd -c "icinga" -s /sbin/nologin -G icingacmd -g icinga icinga | |
usermod -a -G icingacmd www-data | |
# Download sources |
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
# Only include ssl_certificate, ssl_certificate_key and ssl_trusted_certificate in your server configuration | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
ssl_session_timeout 1d; | |
ssl_session_cache shared:SSL:50m; | |
ssl_session_tickets off; | |
ssl_dhparam /etc/nginx/dhparam.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |