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 | |
# Purpose: Monitor Linux disk space and send an email alert to $ADMIN | |
DIRNAME=$(dirname "$0") | |
ALERT=90 # alert level | |
ADMIN="[email protected]" | |
MAIL_CONTENT="Subject:[$(uname -n)] No more space left\\r\\n" | |
df -H | grep -vE '^Filesystem|tmpfs|cdrom|udev|efivars' | awk '{ print $5 " " $1 }' | { |
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
# 7z archive | |
7z -mx=0 a /home/user/archive.7z /folder/to/zip | |
# 7z archive in 1g parts | |
7z -mx=0 -v1g a /home/user/archive.7z /folder/to/zip | |
# Copy / rsync | |
sudo rsync -ah --progress SOURCE DEST | |
# rsync ssh |
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 | |
sed -e "s/é/\\\00E9/g" \ | |
-e "s/è/\\\00E8/g" \ | |
-e "s/ê/\\\00EA/g" \ | |
-e "s/ë/\\\00EB/g" \ | |
-e "s/É/\\\00C9/g" \ | |
-e "s/È/\\\00C8/g" \ | |
-e "s/Ê/\\\00CA/g" \ | |
-e "s/Ë/\\\00CB/g" \ |
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 Reddit Place - Armée de Kameto | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description On va récuperer ce qui nous est dû de droit. | |
// @author Adcoss95 | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://styles.redditmedia.com/t5_4eiiz1/styles/communityIcon_ojy24r8j90o81.jpg | |
// @grant none | |
// @downloadURL https://gist.githubusercontent.com/CorentinGC/900a7b7c55b608a77bdfc8cb3a26a88a/raw/kameto.user.js?v=0.3 |