This file contains 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
#!/bin/bash# | |
# Recipe Name: Install Docker and Docker-Compose | |
# Run as user: root | |
# Recipe: | |
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Focal = Ubuntu 22 | |
# Run `lsb_release -cs` to discover yours if not 22 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" |
This file contains 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
#!/bin/bash# | |
Defina o nome do usuário | |
USERNAME="novousuario" | |
# Cria o usuário com uma pasta home e um shell bash | |
sudo adduser --home "/home/$USERNAME" --shell /bin/bash $USERNAME | |
# Adiciona o usuário ao grupo sudo para que ele tenha privilégios administrativos (opcional) | |
sudo usermod -aG sudo $USERNAME | |
# Cria as pastas padrão do usuário |
This file contains 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
// Faça o calculo do total destes produtos que estão no carrinho | |
const cart = [ | |
{ | |
name: 'Pizza de calebreza', | |
amount: 10, | |
qty: 2, | |
addons: [ | |
{ | |
'name': 'Extra calabreza', |
This file contains 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
<template> | |
<div> | |
<table | |
class="printer-ticket" | |
> | |
<thead> | |
<tr> | |
<th | |
class="title" | |
colspan="3" |
This file contains 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 | |
public function duplicate(Product $product) | |
{ | |
$this->authorize('duplicateProduct', $product); | |
$newProduct = $product->replicate(); | |
$newProduct->name = $product->name . " [Cópia]"; | |
$newProduct->save(); | |
$product->load('variations.items'); |
This file contains 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
<template> | |
<div> | |
<template v-if="initQrcode"> | |
<TWAlert | |
v-if="response.variant === 'danger'" | |
:variant="response.variant" | |
dismissible | |
> | |
<span v-html="response.message" /> | |
</TWAlert> |
This file contains 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
<template> | |
<div | |
id="exampleModal" | |
ref="modal" | |
class="modal fade" | |
:class="{ show: active, 'd-block': active }" | |
data-bs-backdrop="static" | |
data-bs-keyboard="false" | |
tabindex="-1" | |
aria-hidden="true" |
This file contains 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
<template> | |
<div> | |
<ValidationObserver | |
ref="formBusinesPix" | |
tag="form" | |
@submit.stop.prevent="save()" | |
> | |
<div class="grid gap-10"> | |
<PaymentPixForm | |
ref="businessPixForm" |
This file contains 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
<template> | |
<div> | |
<ValidationObserver ref="form"> | |
<form> | |
<TwCard | |
shadow | |
rounded | |
no-body | |
elevated="lg" | |
> |
NewerOlder