Feliz Natal!

13. Re: Feliz Natal!

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/12/2015 - 01:17h

msoliver escreveu:

Um Ótimo Natal para todos!

#!/bin/bash
#PS: Parte do meu script "SORTEIO AMIGO SECRETO"

ROWSCOLS() {
COLS=$(tput cols)
ROWS=$(tput lines)
}

GERACOR() {
COR=$(($RANDOM %255))
if [ $COR -eq 0 ];then ATB=1
#ELIMINA CORES QUE NÃO APARECEM NO FUNDO PRETO
elif [[ $COR == +(16|232|233|234|235|236) ]];then GERACOR
else
ATB=$(($RANDOM %2 + 0))
IC="\033[$ATB;38;5;${COR}m"
FC="\x1B[m"
fi
}


FNATAL() {
ROWSCOLS
clear
POS1=$(((COLS-67)/2))
for X in {1..6};do
GERACOR;sleep 0.05
printf "\e[2;${POS1}f${IC} _____ _____ _ ___ _____ _ _ _ _____ _ _ _${FC}\n";GERACOR;sleep 0.1
printf "\e[3;${POS1}f${IC}| ___| ____| | |_ _|__ / | \ | | / \|_ _|/ \ | | | |${FC}\n";GERACOR;sleep 0.1
printf "\e[4;${POS1}f${IC}| |_ | _| | | | | / / | \| | / _ \ | | / _ \ | | | |${FC}\n";GERACOR;sleep 0.1
printf "\e[5;${POS1}f${IC}| _| | |___| |___ | | / /__ | |\ |/ ___ \| |/ ___ \| |___ |_|${FC}\n";GERACOR;sleep 0.1
printf "\e[6;${POS1}f${IC}|_| |_____|_____|___/_____| |_| \_/_/ \_\_/_/ \_\_____| (_)${FC}\n";sleep 0.1
LIMPA
done
FIM
}

FIM() {
GERACOR
POS1=$(((COLS-71)/2))
sleep 0.05
printf "\e[2;${POS1}f${IC} ____ ___ __ __ _ _ _ ___ _ _ _____ _____ _ ${FC}\n";GERACOR;sleep 0.1
printf "\e[3;${POS1}f${IC}| __ ) / _ \| \/ | / \ | \ | |/ _ \ | \ | |/ _ \ \ / / _ \ | |${FC}\n";GERACOR;sleep 0.1
printf "\e[4;${POS1}f${IC}| _ \| | | | |\/| | / _ \ | \| | | | | | \| | | | \ \ / / | | | | |${FC}\n";GERACOR;sleep 0.1
printf "\e[5;${POS1}f${IC}| |_) | |_| | | | | / ___ \| |\ | |_| | | |\ | |_| |\ V /| |_| | |_|${FC}\n";GERACOR;sleep 0.1
printf "\e[6;${POS1}f${IC}|____/ \___/|_| |_| /_/ \_\_| \_|\___/ |_| \_|\___/ \_/ \___/ (_)${FC}\n\n"
}

LIMPA() {
ESP=" "
printf "\e[2;${POS1}f$ESP\n"
printf "\e[3;${POS1}f$ESP\n"
printf "\e[4;${POS1}f$ESP\n"
printf "\e[5;${POS1}f$ESP\n"
printf "\e[6;${POS1}f$ESP\n"
}
FNATAL


Att.:
Marcelo Oliver


Aqui saiu um pouquinho desencontrado.
Sobe ele para os scripts do Viva O Linux.

----------------------------------------------------------------------------------------------------------------
# apt-get purge systemd

Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden



  


14. Re: Feliz Natal!

M.
XProtoman

(usa Fedora)

Enviado em 25/12/2015 - 07:37h

Feliz natal a todos! :D


15. Re: Feliz Natal!

Marcelo Oliver
msoliver

(usa Debian)

Enviado em 26/12/2015 - 13:25h

Boa tarde listeiro_037 .
Não tinha notado, que qdo é "colado" no fórum perde toda a formatação, os espaços vão p/ o ESPAÇO . . . :)
Seguindo a sugestão do ru4n, estou postando entre CODE.
Valeu ru4n, não tinha notado a funcionalidade dessa opção...


#!/bin/bash
#PS: É Parte do meu script postado aqui no VOL, "SORTEIO AMIGO SECRETO"

ROWSCOLS() {
COLS=$(tput cols)
ROWS=$(tput lines)
}

GERACOR() {
COR=$(($RANDOM %255))
if [ $COR -eq 0 ];then ATB=1
#ELIMINA CORES QUE NÃO APARECEM NO FUNDO PRETO
elif [[ $COR == +(16|232|233|234|235|236) ]];then GERACOR
else
ATB=$(($RANDOM %2 + 0))
IC="\033[$ATB;38;5;${COR}m"
FC="\x1B[m"
fi
}


FNATAL() {
ROWSCOLS
clear
POS1=$(((COLS-67)/2))
for X in {1..6};do
GERACOR;sleep 0.05
printf "\e[2;${POS1}f${IC} _____ _____ _ ___ _____ _ _ _ _____ _ _ _${FC}\n";GERACOR;sleep 0.1
printf "\e[3;${POS1}f${IC}| ___| ____| | |_ _|__ / | \ | | / \|_ _|/ \ | | | |${FC}\n";GERACOR;sleep 0.1
printf "\e[4;${POS1}f${IC}| |_ | _| | | | | / / | \| | / _ \ | | / _ \ | | | |${FC}\n";GERACOR;sleep 0.1
printf "\e[5;${POS1}f${IC}| _| | |___| |___ | | / /__ | |\ |/ ___ \| |/ ___ \| |___ |_|${FC}\n";GERACOR;sleep 0.1
printf "\e[6;${POS1}f${IC}|_| |_____|_____|___/_____| |_| \_/_/ \_\_/_/ \_\_____| (_)${FC}\n"
done
FIM
}

FIM() {
GERACOR
POS1=$(((COLS-71)/2))
sleep 0.05
printf "\e[2;${POS1}f${IC} ____ ___ __ __ _ _ _ ___ _ _ _____ _____ _ ${FC}\n";GERACOR;sleep 0.1
printf "\e[3;${POS1}f${IC}| __ ) / _ \| \/ | / \ | \ | |/ _ \ | \ | |/ _ \ \ / / _ \ | |${FC}\n";GERACOR;sleep 0.1
printf "\e[4;${POS1}f${IC}| _ \| | | | |\/| | / _ \ | \| | | | | | \| | | | \ \ / / | | | | |${FC}\n";GERACOR;sleep 0.1
printf "\e[5;${POS1}f${IC}| |_) | |_| | | | | / ___ \| |\ | |_| | | |\ | |_| |\ V /| |_| | |_|${FC}\n";GERACOR;sleep 0.1
printf "\e[6;${POS1}f${IC}|____/ \___/|_| |_| /_/ \_\_| \_|\___/ |_| \_|\___/ \_/ \___/ (_)${FC}\n\n"
}

LIMPA() {
ESP=" "
printf "\e[2;${POS1}f$ESP\n"
printf "\e[3;${POS1}f$ESP\n"
printf "\e[4;${POS1}f$ESP\n"
printf "\e[5;${POS1}f$ESP\n"
printf "\e[6;${POS1}f$ESP\n"
}
FNATAL






01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts