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
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)