Skip to content

Instantly share code, notes, and snippets.

View monroy95's full-sized avatar
:octocat:
Developer Mode

Mario Monroy monroy95

:octocat:
Developer Mode
  • None
View GitHub Profile
@monroy95
monroy95 / How-to-Python-in-Cursor.md
Created June 19, 2025 06:19 — forked from joeblackwaslike/How-to-Python-in-Cursor.md
How to use python with the Cursor IDE

How to use python with the Cursor AI IDE

We are going to edit cursors settings to point to the microsoft extensions marketplace.

  1. Remove all extensions and exit Cursor.
  2. Locate your Cursor project.json file depending on your platform and open it.
    • On MacOS: /Applications/Cursor.app/Contents/Resources/app/product.json
    • On Windows: C:\Users\<user_name>\AppData\Local\Programs\cursor\resources\app\product.json
    • On Linux: /usr/lib/code/product.json
  3. Locate the object value for key extensionsGallery in the json document.
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
{
guestFunctions: [
'erpnext.www.book_appointment.verify.index.get_context(context)',
'erpnext.www.book_appointment.index.get_appointment_settings()',
'erpnext.www.book_appointment.index.get_timezones()',
'erpnext.www.book_appointment.index.get_appointment_slots(date, timezone)',
'erpnext.www.book_appointment.index.create_appointment(date, time, tz, contact)',
'erpnext.templates.utils.send_message(subject="Website Query", message="", sender="", status="Open")',
'erpnext.templates.pages.product_search.get_product_list(search=None, start=0, limit=12)',
'erpnext.templates.pages.integrations.gocardless_confirmation.confirm_payment(redirect_flow_id, reference_doctype, reference_docname)',
@monroy95
monroy95 / gist:9c7efba365c5ddf611dd7ffdbf464009
Created September 7, 2020 17:05 — forked from mrtns/gist:78d15e3263b2f6a231fe
Upgrade Chrome from Command Line on Ubuntu
# Install
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Update
@monroy95
monroy95 / DateDifference.py
Created January 28, 2020 03:14 — forked from amalgjose/DateDifference.py
This is a very simple python code snippet for calculating the difference between two dates or timestamps. This will calculate the difference in terms of number of years, months, days, hours, minutes etc.
__author__ = 'Amal G Jose'
from datetime import datetime
from dateutil import relativedelta
##Aug 7 1989 8:10 pm
date_1 = datetime(1989, 8, 7, 20, 10)
##Dec 5 1990 5:20 am
date_2 = datetime(1990, 12, 5, 5, 20)