Skip to content

Instantly share code, notes, and snippets.

View SmileYzn's full-sized avatar
🇧🇷
Working from VEC Digital

Cleverson SmileYzn

🇧🇷
Working from VEC Digital
View GitHub Profile
@SmileYzn
SmileYzn / whisker.sh
Created March 10, 2026 18:01
Abrir o whisker menu centralizado na tela do XFCE 4 (Sem Flicker)
#!/bin/bash
#############################################################
# O comando completo com os valores fixados
#############################################################
# 1920x1080: Tamanho da tela
# 510x416: Tamanho do menu whisker
# 35: Tamanho do painel inferior
# xdotool mousemove $(((1920 - 510) / 2)) $((1080 - 416 - 35)) && xfce4-popup-whiskermenu -p
@SmileYzn
SmileYzn / curl_config.sh
Last active March 6, 2026 14:02
cURL ./configure
./configure --disable-shared --enable-static --without-zlib --without-libidn --without-librtmp --disable-ldap --without-libssh2 --without-gnutls --without-mbedtls --without-ldap --without-brotli --without-rtsp --disable-docs --disable-ipfs --disable-rtsp --with-ssl --disable-ftp --disable-file --disable-ldap --disable-rtmp --disable-scp --disable-sftp --disable-smtp --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb
@SmileYzn
SmileYzn / autostart.sh
Last active November 26, 2025 16:14
autostart
#!/bin/sh
# Resolucao da Tela
wlr-randr --output HDMI-A-1 --custom-mode 256x768
wlr-randr --output HDMI-A-2 --custom-mode 256x768
# Video Playback
vlc --fullscreen --loop --no-video-title-show "https://vecsistemas.com/tela/agua-1-3.mp4"
# Exit
@SmileYzn
SmileYzn / xfce.sh
Last active August 29, 2025 15:29
Arch XFCE Post Install
#!/bin/bash
# Limpar
clear
# Usuário padrão (UID 1000)
USUARIO=$(id -nu 1000)
# Verificar acesso root
if [[ $EUID -eq 0 ]]; then
@SmileYzn
SmileYzn / kde.sh
Last active October 1, 2025 15:20
Arch KDE Post Install Script
#!/bin/bash
# Usuário padrão (UID 1000)
USUARIO=$(id -nu 1000)
# Limpar Tela
clear
# Verificar acesso root
if [[ $EUID -eq 0 ]]; then
@SmileYzn
SmileYzn / gnome.sh
Last active September 24, 2025 14:45
GNOME Post Install
#!/bin/bash
# Usuário padrão (UID 1000)
USUARIO=$(id -nu 1000)
# Verificar acesso root
if [[ $EUID -eq 0 ]]; then
echo -e "Esse script NÃO deve ser executado como ${USER}"
exit
fi
@SmileYzn
SmileYzn / cinnamon.sh
Last active September 25, 2025 18:16
Arch Cinnamon Post Install Script
#!/bin/bash
#
# Login do usuário
USUARIO=$(id -nu 1000)
# Verificar acesso root
if [[ $EUID -eq 0 ]]; then
echo -e "Esse script NÃO deve ser executado como ${USER}"
exit
@SmileYzn
SmileYzn / pacotes-arch.txt
Last active June 5, 2025 16:54
Pacotes Arch Linux e Cinnamon Desktop
###############################################################
# Lista de pacotes Arch Linux (Cinnamon Desktop) (03/06/2025)
# Lembre-se a WIKI é sempre sua aliada
# https://wiki.archlinux.org/title/Cinnamon
###############################################################
# Compressão
7zip
unrar
unzip
@SmileYzn
SmileYzn / fstab
Created December 5, 2024 16:57
CIFS Mount for fstab
# Windows
//192.168.100.13/dados_03 /mnt/dados cifs username=USER,password=PASSWORD,uid=1000,gid=1000,rw,noperm,iocharset=utf8,_netdev,x-systemd.automount 0 0
@SmileYzn
SmileYzn / class.SpotenApp.php
Created August 29, 2024 14:16
Spoten App Class
<?php
class SpotenApp
{
public $apiType = "dev";
public $apiUrl = ["homolog" => "https://dashboard-homolog.spoten.app/api", "producao" => "https://dashboard.spoten.app/api"];
public $apiTimeout = 5;
public $apiLastRequest = [];
public $companyId = 267;