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
| upstream websocket { | |
| server localhost:3000; | |
| } | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| access_log /var/log/nginx/websocket.access.log main; |
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
| from p in _context.PaymentLink | |
| join c in _context.Clients on p.ClientId equals c.ClientId | |
| join a in _context.Academy on c.AcademyId equals a.Id | |
| where a.Id == academyId && p.Paid == false | |
| select p |
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
| using System; | |
| using System.Collections.Generic; | |
| using MercadoPago.DataStructures.Preference; | |
| using MercadoPago.Resources; | |
| namespace consoledotNetexample | |
| { | |
| class MainClass | |
| { | |
| public static void Main(string[] args) |
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
| using System; | |
| using MercadoPago.Config; | |
| using MercadoPago.Client.Payment; | |
| using MercadoPago.Resource.Payment; | |
| namespace TesteGetPaymentId | |
| { | |
| class MainClass | |
| { |
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
| import { useForm } from 'react-hook-form' | |
| import { | |
| FormErrorMessage, | |
| FormLabel, | |
| FormControl, | |
| Input, | |
| Button | |
| } from '@chakra-ui/react' | |
| import InputMask from 'react-input-mask' | |
| import { yupResolver } from '@hookform/resolvers/yup' |
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
| mysqldump -h <host> -u <user> -p'<password>' --databases <todos os bancos separados por espaço em branco> --ssl --skip-lock-tables > bkp.sql | |
| Restore | |
| mysql -h <host> -u <user> -p'<password>' --ssl < bkp.sql |
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.7" | |
| volumes: | |
| kong_data: {} | |
| networks: | |
| kong-net: | |
| services: |
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
| using ExemploRawStringLiterals; | |
| using System.Runtime.InteropServices; | |
| Console.WriteLine("***** Testes com C# 11 | Raw String Literals *****"); | |
| Console.WriteLine($"Versao do .NET em uso: {RuntimeInformation | |
| .FrameworkDescription} - Ambiente: {Environment.MachineName}- Kernel: {Environment | |
| .OSVersion.VersionString}"); | |
| var pessoa1 = "{ \"Nome\": \"Renato Groffe\", \"Cidade\": \"Sao Paulo\", \"Idade\": 40 }"; | |
| Teste.ExibirConteudo(pessoa1); |
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
| FROM php:8.0-fpm | |
| RUN apt-get update && apt-get install -y \ | |
| libmagickwand-dev \ | |
| --no-install-recommends \ | |
| && pecl install imagick \ | |
| && docker-php-ext-enable imagick \ | |
| && docker-php-ext-install pdo_mysql |
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
| FROM php:8.0-apache | |
| RUN apt-get update && apt-get install -y \ | |
| libfreetype6-dev \ | |
| libjpeg-dev \ | |
| libpng-dev \ | |
| libwebp-dev \ | |
| --no-install-recommends \ | |
| && docker-php-ext-enable opcache \ | |
| && docker-php-ext-configure gd --with-freetype --with-jpeg \ |
NewerOlder