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
| var toBase64=function (file , callBack) { | |
| file=file.files[0]; | |
| var reader = new FileReader(); | |
| reader.readAsDataURL(file); | |
| reader.onload = function () { | |
| callBack(file,reader.result); | |
| }; | |
| reader.onerror = function (error) { | |
| console.log('Error: ', error); | |
| }; |
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
| #this file is not ready for execution | |
| #go to /opt to download certbot-auto | |
| cd /opt | |
| wget https://dl.eff.org/certbot-auto | |
| #correct permissions | |
| chmod a+x certbot-auto |
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
| sudo find /var/log -type f -regex ".*\.gz$" -delete | |
| sudo find /var/log -type f -regex ".*\.[0-9]$" -delete |
NewerOlder