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 | |
| HOST=${1} | |
| curl -vk#1A '' -X HEAD -H 'Connection: close' "http://${HOST}/" |
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
| # Available loglevels: | |
| # trace8, ..., trace1, debug, info, notice, warn, error, crit, alert, emerg. | |
| # http://httpd.apache.org/docs/2.4/mod/core.html#loglevel | |
| LogLevel info | |
| # http://httpd.apache.org/docs/2.4/mod/core.html#errorlog | |
| ErrorLog ${APACHE_LOG_DIR}/error.log | |
| # http://httpd.apache.org/docs/2.4/mod/mod_log_config.html#customlog | |
| <IfModule log_config_module> | |
| # Set normal logging if mod_setenvif is not loaded |
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
| # cat /etc/debian_version | |
| stretch/sid | |
| # lsb_release -a | |
| No LSB modules are available. | |
| Distributor ID: Debian | |
| Description: Debian GNU/Linux 8.7 (jessie) | |
| Release: 8.7 | |
| Codename: jessie |
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
| SHELL=/bin/bash | |
| # http://www.imagemagick.org/script/convert.php | |
| # https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ | |
| # https://github.com/gutschke/pdf2odt | |
| # https://helpx.adobe.com/acrobat/using/scan-documents-pdf.html#Searchable%20Image | |
| FILE=file | |
| PREFIX=scratch |
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
| # = ^ . ^ = | |
| # | |
| # /etc/sudoers.d/sudoers-insults | |
| # sudoers.d insults configuration file | |
| # Andres Hernandez - tonejito | |
| # | |
| # This file must be mode 0440 and owner root:root | |
| # install --mode 0440 --owner root --group root sudoers-insults /etc/sudoers.d/ | |
| # | |
| # Edit with visudo |
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 | |
| # = ^ . ^ = | |
| #URL="http://checkip.dyndns.org:8245/" | |
| #URL="http://checkip.dyndns.org/" | |
| URL="http://checkip.dns.he.net/" | |
| if [ -x "`which links`" ] | |
| then | |
| links -dump $URL |
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 | |
| # http://unix.stackexchange.com/a/11857 | |
| $@ | (read -r ; printf "%s\n" "$REPLY" ; sort) |
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/echo '= ^ . ^ =' |
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 | |
| PREFIX=user | |
| for NUMBER in {00..09} | |
| do | |
| NAME="${PREFIX}${NUMBER}" | |
| # Genera la sal aleatoriamente desde /dev/urandom | |
| SALT=$(dd if=/dev/urandom bs=1 count=6 2>/dev/null | base64) | |
| PW="`mkpasswd -m sha-256 'password'${NUMBER} ${SALT}`" |
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 | |
| MYSQL_PW="" | |
| MOODLE_PW="" | |
| # Install software | |
| aptitude update | |
| aptitude --assume-yes safe-upgrade | |
| aptitude --assume-yes install tasksel git curl |