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
# Terminal-Icons | |
# Import-Module -Name Terminal-Icons | |
# . "C:\Applications\bin\oci-cli\Lib\site-packages\oci_cli\bin\OciTabExpansion.ps1" | |
# Import-Module posh-git | |
# | |
$MaximumHistoryCount = 20000 | |
Function Test-CommandExists | |
{ | |
Param ($command) |
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
// Ionic Variables and Theming. For more info, please see: | |
// http://ionicframework.com/docs/theming/ | |
/** Ionic CSS Variables **/ | |
:root { | |
/** primary **/ | |
--ion-color-primary: #3880ff; | |
--ion-color-primary-rgb: 56, 128, 255; | |
--ion-color-primary-contrast: #ffffff; | |
--ion-color-primary-contrast-rgb: 255, 255, 255; |
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
@RestController | |
public class ExampleController { | |
@GetMapping("/search") // esse metodo vai ser ativado se um GET for enviado para /clientes/search | |
public List<ClienteResponse> filtrarPeloNome(@RequestParam(required = false, name = "nomeCliente") String name, // parametro a ser passado na url | |
@RequestParam(required = false) Integer idade, | |
@RequestParam(required = false) List<Integer> ids, | |
@RequestParam(required = false) LocalDateTime dateTime, | |
@RequestParam(required = false) LocalDate date | |
) { |
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 example; | |
import jakarta.persistence.Column; | |
import jakarta.persistence.Entity; | |
import jakarta.persistence.GeneratedValue; | |
import jakarta.persistence.GenerationType; | |
import jakarta.persistence.Id; | |
import java.time.LocalDateTime; |
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.kugelbit.mercado.estoque.test | |
import org.slf4j.LoggerFactory | |
import org.springframework.context.ApplicationContext | |
import org.springframework.core.env.Environment | |
import java.sql.SQLException | |
import javax.sql.DataSource | |
object DbTestUtil { | |
private val log = LoggerFactory.getLogger(DbTestUtil::class.java) |
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.kugelbit.mercado.estoque.infrastructure.rest; | |
import com.fasterxml.jackson.annotation.JsonCreator; | |
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.databind.JsonNode; | |
import org.springframework.data.domain.PageImpl; | |
import org.springframework.data.domain.PageRequest; | |
import org.springframework.data.domain.Pageable; |
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.kugelbit.mercado.estoque.test.listener; | |
import jakarta.transaction.Transactional; | |
import lombok.RequiredArgsConstructor; | |
import lombok.SneakyThrows; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.stereotype.Component; | |
import javax.sql.DataSource; | |
import java.sql.Connection; |
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
sudo dnf install -y dnf-utils zip unzip | |
sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo | |
sudo dnf remove -y runc | |
sudo dnf install -y docker-ce --nobest | |
sudo systemctl enable docker.service --now | |
sudo usermod opc -aG docker |
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
sudo yum install -y yum-utils | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum remove -y docker docker-* podman runc | |
sudo yum install -y docker-ce docker-ce-cli containerd.io | |
sudo systemctl start docker | |
sudo systemctl enable docker |
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
param( | |
[Parameter(Mandatory)] | |
[string]$Backup | |
) | |
$DateOfBackup = $(Get-Date -Format "dd-MM-yyyy_HH-mm") | |
# Function to clean up files | |
function Clean-Up-Files { |
NewerOlder