Skip to content

Instantly share code, notes, and snippets.

View wezoalves's full-sized avatar

Weslley Alves wezoalves

View GitHub Profile
@wezoalves
wezoalves / InstallAppsDesktop.sh
Last active January 24, 2024 18:02
Fedora 39 - Softwares Flat Hub
#!/bin/bash
#update: 2024-01-10
# Adicionar o repositório Flathub se ainda não estiver adicionado
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Lista de aplicativos a serem instalados
apps_to_install=(
"com.visualstudio.code"
@wezoalves
wezoalves / InstallAppsDev.sh
Last active January 24, 2024 19:24
Install on Fedora39: httpd php python nodejs mysql-server mongodb redis nginx
#!/bin/bash
# Função para verificar se o pacote está instalado
is_package_installed() {
rpm -q "$1" &> /dev/null
}
# Função para exibir mensagem de sucesso
success_message() {
echo -e "\e[32m✔ $1 instalado com sucesso.\e[0m"
@wezoalves
wezoalves / update-post.py
Created September 10, 2024 02:58
Update meta values into post WordPress
import pandas as pd
import requests
import time
from requests.auth import HTTPBasicAuth
def update_post_meta(post_id, meta_key, meta_value, wp_user, wp_password, wp_url):
url = f"{wp_url}/wp-json/ra/v1/update-meta"
data = {