- Verificar Versão do Docker
docker --version
// Função helper que faz adicionar query na url sem dar reload na página | |
addQueryParam (param) { | |
const currentQuery = { ...this.$route.query } | |
currentQuery.key = param | |
const newUrl = `${window.location.pathname}?${new URLSearchParams(currentQuery).toString()}` | |
// Use history.replaceState para alterar a URL sem recarregar o componente | |
window.history.replaceState({}, '', newUrl) | |
} |
'use strict'; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf-8'); | |
let inputString: string = ''; | |
let inputLines: string[] = []; | |
let currentLine: number = 0; | |
process.stdin.on('data', function(inputStdin: string): void { |
# This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2... | |
# This also works perfectly for all static file content in all projects | |
# This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config. | |
# Example: | |
# http://example.com - Main Laravel site as usual | |
# http://example.com/about - Main Laravel site about page as usual | |
# http://example.com/robots.txt - Main Laravel site static content as usual | |
# http://example.com/api/v1 - Lumen v1 api default / route | |
# http://example.com/api/v1/ - Lumen v1 api default / route |
#!/bin/bash | |
set -e | |
# Atualiza o sistema | |
echo "Atualizando o sistema..." | |
sudo apt update && sudo apt upgrade -y | |
# Instala dependências básicas |
#!/bin/bash | |
# Configurações iniciais | |
echo "Configurando ambiente Java..." | |
# Atualiza pacotes | |
sudo apt update && sudo apt upgrade -y | |
# Instala dependências básicas | |
sudo apt install -y curl unzip zip git |