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 constantshow | |
| set smarthome | |
| set tabsize 4 | |
| set tabstospaces | |
| # Toggle with Alt+$ | |
| set softwrap | |
| set atblanks | |
| # Toggle with Alt+X |
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
| #!/usr/bin/env bash | |
| # Include 'os-release' to grab Debian pretty name... | |
| . /etc/os-release | |
| # Styles... | |
| red="$(tput setaf 1)" | |
| bold="$(tput bold)" |
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
| . 1 . | |
| ${variavel^} - CAPITALIZA primeiro caracter | |
| ${variavel^^} - CAPITALIZA todos os caracteres | |
| ${variavel,} - minimiza primeiro caracter | |
| ${variavel,,} - minimiza todos os caracteres | |
| EXEMPLOS: | |
| teste="banana"; echo ${teste^} |
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
| # -------------------------------------------------------------- | |
| # Essas configurações não afetam o instalador gráfico | |
| # -------------------------------------------------------------- | |
| # O que eu mudo nestas configurações? | |
| # | |
| # - Não pergunta sobre o domínio (deafult = 'localhome') | |
| # - Não pede a senha do root (configurada na pós-instalação) | |
| # - Neste exemplo, o release será: sid main + contrib + non-free | |
| # - Não pergunta sobre um segundo CD de instalação | |
| # - Não pergunta sobre a pesquisa de popularidade |
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
| #!/usr/bin/env bash | |
| # Uso: | |
| # | |
| # ./custom-iso imagem-netinstall.iso \ | |
| # imagem-nova.iso \ | |
| # /caminho/arquivo/preseed.cfg | |
| # 1. Caminho de extração da imagem original (tmp_dir) |
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
| #!/usr/bin/env bash | |
| clear | |
| echo "\ | |
| Operadores Aritméticos Básicos: | |
| ** exponenciação | |
| *, /, % multiplicação, divisão, resto de divisão | |
| +, - adição, subtração |
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
| #!/usr/bin/env bash | |
| clear | |
| echo "Testando os operadores de atribuição... | |
| " | |
| read -p "Digite um valor: " valor | |
| read -p "Digite um operando: " operando |
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
| # Basta incluir o código abaixo no mesmo arquivo onde você define os seus aliases (~/.bashrc ou ~/.bash_aliases, por exemplo) | |
| # man pages | |
| mp() { | |
| [[ -n $1 ]] && man $1 && return | |
| local page=$(man -k . | fzf --reverse -e -i --tiebreak=begin) | |
| [[ -n $page ]] && man ${page%% *} | |
| } | |
| # Completar entradas do manual na função 'mp' | |
| _autocomplete_mp() { |
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
| Para criar páginas e projetos do Xampp na sua própria pasta pessoal: | |
| 1 - Na sua pasta pessoal, crie uma pasta chamada "public_html": | |
| mkdir ~/public_html | |
| 2 - Crie um link simbólico da sua pasta "~/public_html" na pasta "/opt/lampp/htdocs/seu_nome_de_usuario": | |
| sudo ln -s ~/public_html /opt/lampp/htdocs/$USER |
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
| [Desktop Entry] | |
| Type=Application | |
| Name= | |
| Comment= | |
| Icon= | |
| Exec= | |
| Categories= | |
| Terminal=false | |
| NoDisplay=false |