sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| <?php | |
| require_once('vendor/autoload.php'); | |
| use setasign\Fpdi\Tcpdf\Fpdi; | |
| Class PDF extends FPDI{ | |
| private $nome; | |
| private $cpf; |
| #!/bin/bash | |
| # Description: | |
| # This script helps to mount a CIFS network share on Ubuntu/Mint/Debian OS | |
| # Attempt to mount a network share using cifs protocol. | |
| # Takes a server share address and target mount point as input, and writes the values to /etc/fstab | |
| # Update the .smbcredentials file with CIFS username and password | |
| # Template for .smbcredentials: |
| <?php | |
| /** | |
| * Case-insensitive in_array() wrapper. | |
| * | |
| * @param mixed $needle Value to seek. | |
| * @param array $haystack Array to seek in. | |
| * @param bool $strict If the third parameter strict is set to TRUE then the in_array() function will also check the types of the needle in the haystack. | |
| * | |
| * @return bool |
| <?php | |
| /** | |
| * Valida um CNPJ com 14 caracteres, onde os 12 primeiros podem ser alfanuméricos e os 2 últimos são dígitos verificadores. | |
| * A validação é feita utilizando o método do módulo 11, e para caracteres alfabéticos o valor ASCII é subtraído por 48. | |
| * | |
| * @link http://normas.receita.fazenda.gov.br/sijut2consulta/link.action?idAto=141102 | |
| * @param string $cnpj O CNPJ a ser validado, com 14 caracteres alfanuméricos (12 primeiros) e numéricos (2 últimos). | |
| * @return bool Retorna true se o CNPJ for válido, false caso contrário. | |
| * @author Bruno Constantino | |
| * @date 2024-10-29 |
| #!/bin/bash | |
| ## Install Debian/Ubuntu | |
| ## https://think.unblog.ch/en/multiple-php-fpm-versions-with-apache-on-debian-12/ | |
| ## https://tecadmin.net/how-to-install-php-on-debian-11/ | |
| ## https://shape.host/resources/how-to-install-multiple-versions-of-php-on-debian-with-ispconfig | |
| apt install -y lsb-release apt-transport-https ca-certificates wget gnupg | |
| wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg |
| <?php | |
| /** | |
| * @author Tiarê Balbi | |
| * @package PagSeguro | |
| * @category osCommerce, Loja Virtual, Pagamentos | |
| */ | |
| class Pagseguro { | |
| /** |
| # Node Js | |
| # Centos7 | |
| curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - | |
| sudo yum install nodejs | |
| # Ubuntu 20.04 | |
| curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - | |
| sudo apt install nodejs |