Last active
December 11, 2015 06:09
-
-
Save brandon15811/4557339 to your computer and use it in GitHub Desktop.
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/python | |
import os | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
msg = MIMEMultipart('alternative') | |
msg['Subject'] = "Hello from Mandrill, Python style!" | |
msg['From'] = "John Doe <[email protected]>" # Your from name and email address | |
msg['To'] = "[email protected]" | |
text = sys.argv[1] | |
part1 = MIMEText(text, 'plain') | |
username = | |
password = | |
msg.attach(part1) | |
s = smtplib.SMTP('smtp.mandrillapp.com', 587) | |
s.login(username, password) | |
s.sendmail(msg['From'], msg['To'], msg.as_string()) | |
s.quit() |
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
/var/log/pocketmine-backup.log { | |
daily | |
missingok | |
rotate 7 | |
} |
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
[program:pocketmine-mp] | |
directory=/home/brandon/Documents/PocketMine-MP ; change me | |
command=/home/brandon/Documents/PocketMine-MP/php5/bin/php -d enable_dl=On PocketMine-MP.php ; change me | |
startsecs=2 | |
[eventlistener:crashmail] | |
command=crashmailbatch --toEmail="[email protected]" --fromEmail="Pocketmine-MP Server <[email protected]>" --subject="Alert from Supervisor" --smtpHost="smtp.mandrillapp.com" --smtpUser="" --smtpPass="" ; change me | |
events=PROCESS_STATE,TICK_60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment