GET /_cat/indices?v
GET //_search?pretty=true&q=*:*
## Sugestion #1 | |
# on Bash | |
sudo bash | |
# Home origin user | |
cd /home/bob | |
# Clone home folder | |
tar cf - . | (cd ../pete;tar xf -) | |
# Change home permissions | |
chown -R pete:pete /home/pete |
Como instalar OminiSharp no Vim:
## CONFIG DO WSL2 para limitar memória (Parou de existir) | |
## vim %UserProfile%\.wslconfig | |
[wsl2] | |
memory=6GB | |
swap=0 | |
localhostForwarding=true | |
## Para instalar X no WSL2: | |
## Mais: https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps |
# Outros modulos PS instalados | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Paradox | |
# Salve este arquivo em: $profile (C:\Users\reinaldo\Documents\PowerShell\Microsoft.PowerShell_profile.ps1) | |
# Pode-se abrir direto para edição com: vim $profile | |
# Mais detalhes em: https://stackoverflow.com/questions/24914589/how-to-create-permanent-powershell-aliases | |
# Cria uma funcao para processar os comandos |
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
## About Alias | |
# https://www.tecmint.com/create-alias-in-linux/#:~:text=Aliases%20are%20like%20custom%20shortcuts%20used%20to%20represent,on%20your%20profile%20by%20simply%20executing%20alias%20command. | |
## ############## | |
## ALIASES | |
## ############# | |
# Como fazer: | |
# Ediar arquivo de profile: | |
vim $HOME/.bash_aliases |
-- EXEMPLO: | |
-- 1. CRIA TABELA PARA REGISTRAR LOGS | |
CREATE OR REPLACE TABLE TriggerLog(text varchar(200)) ENGINE=MyIsam; | |
-- 2. CRIA TABELA DE REGISTROS | |
CREATE OR REPLACE TABLE registros ( | |
id int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
cliente int NOT NULL, | |
valor varchar(80) COLLATE utf8_unicode_ci NOT NULL, |
Detalhes em: https://imasters.com.br/devsecops/cedilha-ubuntu-13-10-com-teclado-americano
Passos:
/etc/environment
, e incluir as linhas:
GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla