Skip to content

Instantly share code, notes, and snippets.

View jorcelinojunior's full-sized avatar
🎯
Focusing

jorcelinojunior jorcelinojunior

🎯
Focusing
View GitHub Profile
@jorcelinojunior
jorcelinojunior / cursor_appimage_manager.sh
Last active November 12, 2024 18:18
Automate the integration of Cursor .AppImage on Linux: updates .desktop, manages icons, ensures the latest version, and configures AppArmor (Required for Ubuntu 24.04).
#!/bin/bash
set -euo pipefail
# Definition of colors for terminal output
readonly RED_COLOR="\e[31m"
readonly GREEN_COLOR="\e[32m"
readonly YELLOW_COLOR="\e[33m"
readonly BLUE_COLOR="\e[34m"
readonly MAGENTA_COLOR="\e[35m"
@jorcelinojunior
jorcelinojunior / rename_script.sh
Created February 11, 2024 15:59
Script to recursively rename directories and files from 'foo' to 'bar', with a simulation mode available.
#!/bin/bash
SEARCH_DIR="./src"
SEARCH_FOR="foo"
REPLACE_WITH="bar"
SIMULATE=false
# Function to rename matching files and directories
rename_matches() {
local path="$1"