Skip to content

Instantly share code, notes, and snippets.

@tenneseecox
tenneseecox / install-cursor-ubuntu.md
Created February 24, 2025 18:59
Step-by-Step Beginner Guide To Easily Install Cursor On Ubuntu Bash

Step 1: Save the Script From Below

First, you need to save this script to a file on your Ubuntu system:

  • Open a text editor like nano or gedit: nano install_cursor.sh
  • Copy and paste the script below
  • Save the file and exit the editor (in nano: Ctrl+O, Enter, then Ctrl+X)

Step 2: Make the Script Executable

@timrs2998
timrs2998 / system-sleep-xhci.sh
Created March 1, 2018 16:25 — forked from ioggstream/system-sleep-xhci.sh
Disable broken xhci device before suspend and avoid freeze.
#!/bin/sh
#
# This script should prevent the following suspend errors
# which freezes the Dell Inspiron laptop.
#
# Put it in /usr/lib/systemd/system-sleep/xhci.sh
#
# The PCI 00:14.0 device is the usb xhci controller.
#
# kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active February 9, 2025 02:05
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {