This file contains hidden or 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
| # Embed the C# code in PowerShell | |
| # Fork from: https://gist.github.com/JohnLBevan/1593bbb860c2d2af436a1c9414e8adfa | |
| Add-Type @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class WindowMover | |
| { | |
| [StructLayout(LayoutKind.Sequential)] | |
| public struct POINT |
This file contains hidden or 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 | |
| df -H | grep -vE '^Filesystem|tmpfs|cdrom|shm|overlay|udev' | awk '{ print $5 " " $1 }' | while read output; | |
| do | |
| echo $output | |
| usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) | |
| partition=$(echo $output | awk '{ print $2 }' ) | |
| if [ $usep -ge 90 ]; then | |
| echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" | |
| rm -rf /root/mailu-data/filter/*.{map,tmp} | |
| fi |
This file contains hidden or 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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains hidden or 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
| \ProvidesFile{absender.lco} | |
| \KOMAoptions{% | |
| % fromemail=true, % Email wird im Briefkopf angezeigt | |
| % fromphone=true, % Telefonnumer wird im Briefkopf angezeigt | |
| % fromfax=true, % Faxnummer wird im Briefkopf angezeit | |
| % fromurl=true, % URL wird im Briefkopf angezeigt | |
| % fromlogo=true, % Logo wird im Briefkopf angezeigt | |
| % subject=titled, % Druckt "Betrifft: " vor dem Betreff | |
| locfield=wide, % Breite Absenderergänzung (location) |