Add files to a new Git Repository

Navigate to the location of the files to add:

git init

Add the remote repository:

git remote add origin <your-git-repo-url>

Note: If your Git repository already has files (like a README), you might need to pull first:

git pull origin master --allow-unrelated-histories

Then you can add and push your changes.

Add all existing files:

git add .

Create your first commit:

git commit -m "Initial commit"

Push to the remote repository:

git push -u origin master

Cursor ARM Installation on Ubuntu

Use the following for installation of Cursor on ARM

curl -fsSL https://downloads.cursor.com/keys/anysphere.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/cursor.gpg > /dev/null

echo "deb [arch=amd64,arm64 signed-by=/etc/apt/keyrings/cursor.gpg] https://downloads.cursor.com/aptrepo stable main" | sudo tee /etc/apt/sources.list.d/cursor.list > /dev/null

sudo apt update

sudo apt install cursor

Download a HAR file with Brave

If you want to capture everything include passwords and parms, you need to turn on this feature because by default it sanitizes the HAR file.

Click (1) for settings

Make sure (2) is checked

Using Cursor from Terminal CLI

Installation

Install the Cursor CLI by running:

curl https://cursor.com/install -fsS | bash

Usage Modes

1. Interactive Mode

Start an interactive session with the Cursor Agent:

cursor-agent

This opens a conversational interface where you can describe your coding tasks, review proposed changes, and approve commands.

2. Non-Interactive Mode

For scripting or automation purposes, use the non-interactive mode:

cursor-agent -p "Your prompt here"

Replace "Your prompt here" with your specific instruction. This mode is suitable for integrating Cursor into scripts, CI pipelines, or other automated workflows.

3. Shell Mode

Cursor CLI includes a Shell Mode that allows you to execute shell commands directly:

cursor-agent shell

In this mode, you can run quick, non-interactive commands without leaving your conversation. Note that commands timeout after 30 seconds, and long-running processes or interactive prompts are not supported.

Managing Sessions

Resume a Previous Conversation

cursor-agent resume

List All Previous Chats

cursor-agent ls

These commands help maintain context across multiple interactions.

Security

Before executing terminal commands, the CLI will prompt you for approval. Ensure you review and approve commands to maintain security.

Resources

Windows 11 License / Serial Number – How to transfer

Moving Your Windows 11 License to Another Computer

1. Verify Your License Type

  • Retail keys can be transferred.
  • OEM keys are tied to the original hardware—not transferable.
  • Digital entitlement licenses link to your Microsoft account and may auto-reactivate on new hardware.

2. Extract Your Product Key

Open an Administrator Command Prompt and run:

wmic path softwarelicensingservice get OA3xOriginalProductKey

If that returns blank, try in PowerShell (Admin):

(Get-WmiObject -Query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

If still blank, you likely have a digital-only license—no key is needed; just sign in on the new PC with your Microsoft account.

3. De-register on the Old PC

In an elevated Command Prompt, run:

slmgr.vbs /upk

This uninstalls the key from the old machine, freeing up the license.

4. Install & Activate on the New PC

Option A: Command Line
Open Admin Command Prompt and run:

slmgr.vbs /ipk YOUR-25-CHAR-KEY-HERE
slmgr.vbs /ato

Option B: Settings UI
Go to Settings > System > Activation > Change product key, paste your key, and follow the prompts.


If activation fails, confirm you have a Retail license (Settings > System > Activation) or contact Microsoft support for a manual transfer.