Skip to content

Instantly share code, notes, and snippets.

View ivanaugustobd's full-sized avatar
🦥
Automating stuff

Ivan Augusto ivanaugustobd

🦥
Automating stuff
  • World Wide Weeb
View GitHub Profile
#!/bin/bash
FLATPAK_STEAM_PATH=~/.var/app/com.valvesoftware.Steam
[ ! -d "$FLATPAK_STEAM_PATH" ] && echo 'Flatpak Steam not found' && exit 1
# Copy the icon files
USER_ICONS_PATH=~/.local/share/icons
mkdir -p "$USER_ICONS_PATH"
rsync -a "$FLATPAK_STEAM_PATH"/data/icons/* "$USER_ICONS_PATH"
@ivanaugustobd
ivanaugustobd / setup-queue.sh
Last active September 26, 2025 10:41
Magento 2 queue (background jobs) quick setup
#!/bin/bash -e
# Usage: ./setup-queue.sh
# (at magento's root dir)
#
# This will update your app/etc/env.php with the config needed
# to process magento queued messages (background jobs) using mysql + cron,
# executing them alongside your regular bin/magento cron:run scheduling
# Backup the env.php file to app/etc/env.php.bkp
@ivanaugustobd
ivanaugustobd / magento-wizard-php-wrapper.sh
Created March 12, 2026 13:28
VS Code - Magento Wizard
#!/usr/bin/env bash
set -euo pipefail
HOST_PROJECT_DIR="${PWD}"
CONTAINER_PROJECT_DIR="/var/www/html"
translate_arg() {
local ARG="$1"
case "$ARG" in