Skip to content

Instantly share code, notes, and snippets.

View gaswirth's full-sized avatar
🏠
Working from home

Nick Gaswirth gaswirth

🏠
Working from home
View GitHub Profile
@gaswirth
gaswirth / install_cursor.sh
Last active May 17, 2025 16:10 — forked from Kinyugo/install_cursor.sh
Cursor AI IDE Installer and Updater Script
#!/bin/bash
installCursor() {
local DEFAULT_CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64"
# Prompt for Cursor URL
echo "Please enter the Cursor download URL"
echo "Press Enter to use default: $DEFAULT_CURSOR_URL"
read -r USER_CURSOR_URL
@gaswirth
gaswirth / wp_helper.sh
Created September 6, 2017 20:41 — forked from phlbnks/wp_helper.sh
Utility script to help manage WordPress sites on an EasyEngine server (but not limited to EE)
#!/bin/bash
# Help / usage info.
USAGE=$'WordPress Helper script, built for EasyEngine but should be widely compatible.\nWithout any args it will search /var/www/ for WordPress sites, loop over them in alphabetical order and check for core and plugin updates.\nAlso accepts:\n\t--sites=[space seperated list of site paths relative to /var/www]\n\t--update=[plugins|wp|all].'
# Die function for exiting on errors.
die () {
echo "${1}, exitting..." >&2 ; echo ; exit 1
}