Skip to content

Instantly share code, notes, and snippets.

Alexis Madrzejewski madrzejewski

Block or report user

Report or block madrzejewski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cv.tex
% Exemple de CV utilisant la classe moderncv
% Style classic en bleu
% Article complet :
% Marge aux 4 coins de la page, ici elles sont réduites pour gagner de la place
\usepackage[top=1.0cm, bottom=1.0cm, left=1.6cm, right=1.6cm]{geometry}
case $1 in
# Exemple : signature d'un email
xdotool key --delay 110 Return
xdotool type --delay 0 "Si vous avez d'autres questions, je reste à votre écoute."
xdotool key --delay 1 Return
# Example for :
set -euo pipefail
View 00-remoteip.conf
# Conf for this article :
LoadModule remoteip_module modules/
RemoteIPHeader X-Forwarded-For
View config
# /etc/monit/conf.d/config
# Configuration de Monit de base
set daemon 120 # verif toutes les 2 minutes
with start delay 240 # 1ere verif après 4min
set logfile syslog facility log_daemon # précise les fichiers de logs
set mailserver localhost # précise le serveur de mail pour les alertes
set eventqueue
# si le serveur de mail down, on stock les alertes
basedir /var/monit # répertoire de stockage
View all the commands used in the
# All the command used here :
# Centos 7.1, the libs named may changed in the future, so don't just copy/paste and check on your system first
# First example, chroot bash
mkdir chroot_bash
mkdir -p chroot_bash/usr/bin
cp /usr/bin/bash chroot_bash/usr/bin
chroot chroot_bash/ bash
chroot: failed to run command ‘bash’: No such file or directory
You can’t perform that action at this time.