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
# -------------------------------------------------------------- | |
# 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
. 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
#!/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
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 | |
# ---------------------------------------------------------- | |
# Script : debian-iso-download.sh | |
# Author : Blau Araujo <[email protected]> | |
# Version: 1.1 | |
# License: GNU/GPL-3.0 | |
# | |
# Description: | |
# |
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] | |
Version=1.0 | |
Type=Application | |
Name=Compositor... | |
Comment= | |
Exec=/home/gda/.local/bin/xfce4-composite-toggle | |
Icon=/home/gda/docs/pics/icons/composite-true.svg | |
Path= | |
Terminal=false | |
StartupNotify=false |
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 | |
ml=$(xdotool getmouselocation | cut -d' ' -f1-2 | sed -e 's/.://g') | |
xdotool mousemove 100 1030 | |
xdotool click 1 | |
xdotool mousemove $ml | |
exit 0 |