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
<?php | |
$to = isset($_POST["to"])? $_POST["to"] : ''; // 'personne@example.com'; | |
$subject = isset($_POST["subject"])? $_POST["subject"] : ''; // 'le sujet'; | |
$message = isset($_POST["message"])? $_POST["message"] : ''; // 'Bonjour !'; | |
$headers = 'From: '.( isset($_POST["from"])? $_POST["from"] : '') .'\r\n' . // 'From: webmaster@example.com' . "\r\n" . | |
'X-Mailer: PHP/' . phpversion(); | |
echo mail($to, $subject, $message, $headers); |
- Download Powerline Fonts, or get SourceCode Pro, Hack or else from Nerd Fonts (recommended)
- Change
Cmder
fonts in Cmder settings (General > Fonts
). Make sure the font charset is set to ANSI.
NB: Remember to backup every config files you will modify
- Change
Cmder/vendor/init.bat
file with the one provided - Replace
Cmder/config/git.lua
file with the one provided and addprompt.lua
in the same folder - Make sure Cmder loads
cmd
withinit.bat
, for instance, like this :
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 | |
backup_folder="./backup" | |
jenkins_war="./jenkins.war" | |
backup_name="jenkins.war.$(date +"%Y_%m_%d_%H_%M_%S")" | |
mkdir -p $backup_folder | |
if [ "$(ls -A $backup_folder)" ]; then | |
latest_backup=$(ls -t1 $backup_folder | head -n 1) |