Não use UUID como PK nas tabelas do seu banco de dados.
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
| ANSI_RESET = "\033[0m" | |
| ANSI_STYLES = { | |
| 'BOLD': '1', | |
| 'ITALIC': '3', | |
| 'UNDERLINE': '4', | |
| 'NORMAL': '0' | |
| } | |
| ANSI_COLORS = { |
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
| AWS_REGION=us-east-2 | |
| CLUSTER_NAME=lukaszbudniktest1 | |
| eksctl create cluster --name $CLUSTER_NAME --region $AWS_REGION --version 1.16 --fargate | |
| eksctl utils associate-iam-oidc-provider --region $AWS_REGION --cluster $CLUSTER_NAME --approve | |
| # below lines for setting up policy, role, and trust relationship are based on: https://github.com/godaddy/kubernetes-external-secrets/issues/383 | |
| EKS_CLUSTER=$CLUSTER_NAME | |
| IAM_ROLE_NAME=eksctl-$EKS_CLUSTER-iamserviceaccount-role |
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
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
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.Security.Authentication; | |
| using IdentityModel; | |
| using IdentityModel.Client; | |
| using Microsoft.Extensions.Caching.Memory; | |
| using Microsoft.Extensions.Options; | |
| namespace Api.Client.DelegatingHandlers; | |
| public class ClientCredentialsDelegatingHandler : DelegatingHandler | |
| { |
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 br.com.stackspot.nullbank.withdrawal; | |
| import org.hibernate.LockOptions; | |
| import org.springframework.data.jpa.repository.*; | |
| import org.springframework.stereotype.Repository; | |
| import javax.persistence.LockModeType; | |
| import javax.persistence.QueryHint; | |
| import javax.transaction.Transactional; | |
| import java.util.Optional; |
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
| set wsc = CreateObject("WScript.Shell") | |
| Do | |
| 'Five minutes | |
| WScript.Sleep(5*60*1000) | |
| wsc.SendKeys("{F13}") | |
| Loop | |
| set wsc = CreateObject("WScript.Shell") | |
| Do |
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 com.xpto.domain.model.validator; | |
| import javax.validation.Constraint; | |
| import javax.validation.Payload; | |
| import java.lang.annotation.*; | |
| @Target(ElementType.FIELD) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| @Constraint(validatedBy = PhotoExtensionValidator.class) | |
| @Documented |
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 { HardhatRuntimeEnvironment } from 'hardhat/types'; | |
| import { DeployFunction } from 'hardhat-deploy/types'; | |
| const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | |
| const { | |
| deployments: { deploy }, | |
| getNamedAccounts, | |
| } = hre; | |
| const { deployer } = await getNamedAccounts(); |
NewerOlder