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 | |
| set -euo pipefail | |
| # NewRelic Installer for x64 glibc linux system without PHP ZTS | |
| # Tested on debian:buster-slim | |
| INSTALL_DIR=$(mktemp -d -t) | |
| PHP_VER=$(php -r 'echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION;') | |
| PHP_DIR=$(php -r 'echo ini_get("extension_dir");') | |
| PHP_API=${PHP_DIR##*/} |
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
| # Processo para liberar o login no Ubuntu 18.04 usando somente o Yubikey (1FA) | |
| # Este processo não é o mais seguro, mas é um bom equilibrio entre praticidade e segurança. | |
| # Insira o yubikey | |
| # Abra um terminal com o usuário que deseja liberar o acesso | |
| # Instale as dependências | |
| sudo apt-get install libpam-u2f | |
| # Crie o arquivo de autenticação | |
| mkdir -p ~/.config/Yubico |
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 | |
| # | |
| # Ubuntu 20.04 + GPG | Git, SSH, Yubikey 5 | |
| # | |
| # https://github.com/dainnilsson/scripts/blob/master/base-install/git.sh | |
| # https://github.com/dainnilsson/scripts/blob/master/base-install/gpg.sh | |
| # https://riseup.net/en/security/message-security/openpgp/best-practices | |
| # https://www.forgesi.net/gpg-smartcard/ | |
| ############################################################ |
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 | |
| openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/CN=localhost" |
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
| <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> | |
| <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> | |
| <script src="https://code.highcharts.com/highcharts.js"></script> | |
| <script src="https://code.highcharts.com/modules/exporting.js"></script> | |
| <script> | |
| $(function() { | |
| $('#container').highcharts({ | |
| chart: { | |
| type: 'spline' |
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 Dump All | |
| # | |
| # Backup (mysqldump) all your MySQL databases in separate files | |
| # | |
| # Author Tonin R. Bolzan <tonin@bolzan.io> | |
| # License http://www.opensource.org/licenses/mit-license.php MIT License | |
| # https://gist.github.com/tonybolzan |
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 | |
| # Google Drive Uploader | |
| # | |
| # This script enable to send files to a specific folder in your Google Drive Account | |
| # You can easily back up your data on Google Drive | |
| # | |
| # Author Tonin R. Bolzan <tonin@bolzan.io> | |
| # License http://www.opensource.org/licenses/mit-license.php MIT License | |
| # https://gist.github.com/tonybolzan |
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 | |
| # Media Server | |
| # Script para instalar um Media Server completo, Incluindo: plex, owncloud, transmission, bittorrent sync | |
| # | |
| # http://doc.owncloud.org/server/5.0/admin_manual/installation/installation_others.html#nginx-configuration | |
| # http://btsync.s3-website-us-east-1.amazonaws.com/BitTorrentSyncUserGuide.pdf | |
| # | |
| # ownCloud http://localhost | |
| # Plex http://localhost/plex |
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
| <?php | |
| $n_pass = 200000; | |
| $n_iter = 2; | |
| function generate() { | |
| return uniqid(rand(), TRUE); | |
| } | |
| $total_time_ini = microtime(true); |