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 | |
check_root_privileges() { | |
if [ "$EUID" -ne 0 ]; then | |
echo "Este script precisa ser executado com privilégios de superusuário (root)." | |
exit 1 | |
fi | |
} | |
update_package_list() { |
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
/* | |
################################### | |
## Customgtk-3.0 css definitions ## | |
################################### | |
*/ | |
/* notify buttons */ | |
#showdesktop-button image { | |
-gtk-icon-transform: scale(1); | |
} |
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
/*.xfce4-panel { | |
border-bottom-left-radius: 13px; | |
border-bottom-right-radius: 13px; | |
border-top-left-radius: 13px; | |
border-top-right-radius: 13px; | |
}*/ | |
#whiskermenu-button image { | |
-gtk-icon-transform: scale(1); | |
} | |
#showdesktop-button image { |
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 | |
function validar_variaveis() { | |
if [[ -z "$PIHOLE_BASE" ]]; then | |
echo "Erro: Variável PIHOLE_BASE não definida." | |
exit 1 | |
fi | |
} | |
function criar_diretorio() { |
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
const elements = { | |
loading: document.querySelector("#loading"), | |
postsContainer: document.querySelector("#posts-container"), | |
postPage: document.querySelector("#post"), | |
postContainer: document.querySelector("#post-container"), | |
commentsContainer: document.querySelector("#comments-container"), | |
commentForm: document.querySelector("#comment-form"), | |
emailInput: document.querySelector("#email"), | |
bodyInput: document.querySelector("#body"), | |
}; |
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 python3 | |
# -*- coding: utf-8 -*- | |
import pyttsx3 | |
def inicializar_engine(): | |
"""Inicializa a engine de texto para fala.""" | |
return pyttsx3.init() | |
def gerar_tabuada(numero, num_linhas): |
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 | |
# Autor: Nery | |
# Data: 8/12/2023 | |
# Descrição: Remove todas as senhas do Seahorse | |
XDG_CONFIG_HOME="$HOME/.config" | |
function list_keyring_dirs() { | |
local keyrings_dir="$XDG_CONFIG_HOME/seahorse/keyrings" |
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 | |
REPO_URL="https://github.com/dmo60/CoverflowAltTab.git" | |
EXTENSION_DIR="$HOME/CoverflowAltTab" | |
execute_command() { | |
local command="$1" | |
local message="$2" | |
echo "$message" | |
if ! $command; then |
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 | |
# breaking the code with SOLID | |
function download_and_verify() { | |
local url="$1" | |
local filename="$2" | |
wget -q "$url" -O "$filename" | |
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 | |
download_and_verify() { | |
local url="$1" | |
local filename="$2" | |
wget -q "$url" -O "$filename" | |
if [ -s "$filename" ]; then | |
echo "Download de $filename bem-sucedido." |
NewerOlder