Skip to content

Instantly share code, notes, and snippets.

View jorcelinojunior's full-sized avatar
🎯
Focusing

jorcelinojunior jorcelinojunior

🎯
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorcelinojunior
jorcelinojunior / cursor_appimage_manager.sh
Last active April 17, 2025 05:02
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"