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
sendemail -f "[email protected]" -t "[email protected]" -u "Se ha ido la luz" -m "Detectado por Ariel5." -s smtp.gmail.com -xu [email protected] -xp CLAVE -o tls=yes | |
twidge update "$RANDOM - Se ha ido la luz" | |
gsmsendsms -d /dev/rfcomm0 644444444 "Se ha ido la luz" |
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
# | |
# RFCOMM configuration file. | |
# | |
rfcomm0 { | |
# # Automatically bind the device at startup | |
bind yes; | |
# | |
# # Bluetooth address of the device | |
device 00:1E:45:30:11:11; |
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 -l | |
## script backup base de datos / script Oracle Backup | |
#mrmamba.stack-overflow.net | |
#variables | |
fecha="$(date +%Y%m%d)" | |
diasConservar=10 | |
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
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_domains, reject | |
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_domains, reject |
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 | |
retencion=31 | |
fecha=`date +"%m%d%y"` | |
cd /root/Dropbox | |
/bin/tar cjf web.tar.bz2 web/ | |
mv web.tar.bz2 archive/$fecha.bz2 | |
find /root/Dropbox/archive/*.bz2 -mtime +$retencion -exec rm {} \; |