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/bash | |
| sudo mount -o remount,size=10G,noatime /tmp | |
| echo "Done. Please use 'df -h' to make sure folder size is increased." |
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
| # Send e-mail from server using smtp-cli — command line SMTP client | |
| # http://www.logix.cz/michal/devel/smtp-cli/ | |
| # | |
| # Original version by Alfredo Tomio Junior | |
| # <alfredo.tomio@neoway.com.br> | |
| SMTPCLI="/usr/bin/smtp-cli" | |
| KEYSMTP="your aws key smtp" | |
| SECRETKEYSMTP="your aws secret key smtp" | |
| MAILFROM="Alfredo Tomio Junior<email@gmail.com>" |
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
| function slacknotice () | |
| { | |
| SLACKMSG=`cat $LOGDIR/$PROCESSLOG` | |
| $CURLCMD -X POST --data-urlencode 'payload={"text": "'"<!channel> $SLACKMSG"'" }' https://hooks.slack.com/services/[ create your own hook ] | |
| } |
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
| # client.conf at AWS side | |
| # Original version by Alfredo Tomio Junior | |
| # <rootshell2@gmail.com> | |
| remote [IP] [PORT] | |
| dev tun | |
| proto udp | |
| ifconfig 10.10.0.2 10.10.0.1 | |
| comp-lzo | |
| persist-key |