Última atualização: 26/11/2025
Documentação oficial: https://opentelemetry.io/docs/languages/php/instrumentation/
Versão mínima suportada: PHP 7.4+
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
| document | |
| .querySelectorAll('button[aria-label^="Aceitar o convite de"]') | |
| .forEach((btn, i) => setTimeout(() => btn.click(), i + 500)); |
- Docker é uma plataforma Open Source escrito em Go, que é uma linguagem de programação de alto desempenho desenvolvida dentro do Google, que facilita a criação e administração de ambientes isolados.
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
| # Update Jan 2024 | |
| # Deploying Cloud Functions is much simpler than it was 6 years ago. | |
| # I'm leaving the gist in it's original 2018 state for now, | |
| # but skip the the recent comments below for a simpler solution. | |
| variables: | |
| GCP_ZONE: us-central1-a | |
| stages: | |
| - npm-install |
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 | |
| function validaCPF($cpf) { | |
| // Extrai somente os números | |
| $cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
| // Verifica se foi informado todos os digitos corretamente | |
| if (strlen($cpf) != 11) { | |
| return false; |
To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:
$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd
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
| #! /usr/bin/env python3 | |
| """Fixing bluetooth stereo headphone/headset problem in debian distros. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . | |
| Licence: Freeware |
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 | |
| if(!function_exists('config_path')) | |
| { | |
| /** | |
| * Return the path to config files | |
| * @param null $path | |
| * @return string | |
| */ | |
| function config_path($path=null) |
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
| # paci - install one or more packages | |
| # pacu - upgrade all packages to their newest version | |
| # pacr - uninstall one or more packages | |
| # pacs - search for a package using one or more keywords | |
| # pacinfo - show information about a package | |
| # pacinstalled - show if a package is installed | |
| # paca - list all installed packages | |
| # paclo - list all packages which are orphaned | |
| # pacdnc - delete all not currently installed package files | |
| # pacfiles - list all files installed by a given package |
NewerOlder
