Ú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
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func flattenMap(data map[string]any, prefix string, separator string) string { | |
| var result []string | |
| for key, value := range data { |
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
| # Video: https://youtu.be/b-KFj8GfvzE | |
| # Full Backup | |
| mariadb-backup --backup \ | |
| --user=$DB_ROOT_USER \ | |
| --password=$DB_ROOT_PASSWORD \ | |
| --target-dir=$BACKUP_BASE_DIR | |
| # Incremental Backup | |
| mariadb-backup --backup \ | |
| --user=$DB_ROOT_USER \ |
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
| alias ps='docker compose ps --format "table {{.Name}}\t{{.Image}}\t{{.Ports}}\t{{.State}}\t{{.Status}}"' |
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
| services: | |
| zlmediakit: | |
| image: zlmediakit/zlmediakit:master | |
| deploy: | |
| resources: | |
| reservations: | |
| devices: | |
| - capabilities: [gpu] | |
| environment: | |
| - NVIDIA_VISIBLE_DEVICES=all |
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
| # Criar usuário "silvio" | |
| sudo adduser silvio | |
| # Adicionar "silvio" ao grupo "sudo" | |
| sudo usermod -aG sudo silvio | |
| # Criar pasta .ssh para o usuário "silvio" e arquivo authorized_keys | |
| sudo mkdir /home/silvio/.ssh | |
| sudo touch /home/silvio/.ssh/authorized_keys |
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
| zip -r -s 5G file.zip path/to/folder | |
| cat file.z* > merged.zip |
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 | |
| $b = 'González'; | |
| function Unaccent($string) | |
| { | |
| return preg_replace('~&([a-z]{1,2})(acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i', '$1', htmlentities($string, ENT_QUOTES, 'UTF-8')); | |
| } | |
| Unaccent($b); |
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
| version: '3.6' | |
| services: | |
| kiloview: | |
| image: kiloview/klnkserver:latest | |
| restart: always | |
| ports: | |
| - '82:82' | |
| - '60000:60000/udp' | |
| - '60001:60001/udp' |
NewerOlder