Skip to content

Instantly share code, notes, and snippets.

View rmehta's full-sized avatar

Rushabh Mehta rmehta

View GitHub Profile
@rmehta
rmehta / erpnext_magento.php
Last active April 24, 2024 06:57
Sample ERPNext Magento Connector
<?php
// contributed by supplify.com
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once '../curl/Zebra_cURL.php';
require_once '../app/Mage.php';
Mage::app();
class action extends Zebra_cURL{
@rmehta
rmehta / sample-print-format.html
Created October 25, 2012 16:32
ERPNext Print Format sample with additional column
<!--
Sample Print Format for ERPNext
Please use at your own discretion
For suggestions and contributions:
https://github.com/webnotes/erpnext-print-templates
Freely usable under MIT license
-->
<!-- Style Settings -->
@rmehta
rmehta / gist:3866677
Created October 10, 2012 16:20
client event trigger example
// add a trigger on field "custom_field1"
cur_frm.cscript.custom_field1 = function(doc, cdt, cdn) {
// update a new field "custom_field3"
doc.custom_field3 = flt(doc.custom_field1)*flt(doc.custom_field2)/1000;
// refresh in form
refresh_field('custom_field3');
}
@rmehta
rmehta / open_source_erp.md
Last active January 23, 2023 10:57
Building An Open Source ERP

Building An Open Source ERP

Why would someone start a new open source ERP (Enterprise Resource Planning) project, is the question that people ask me again and again. If I knew what it takes, I said, I would not do it! But I did not know that in 2006 when I started to write my own ERP in Python and MySQL. I had just joined my family business (furniture manufacturing) and the company was reeling under a bad ERP implementation. It was a local vendor who was building it out on the .NET platform and after sinking a reasonable sum of money, he was not able to get it right. At that point, my faith in the entire ERP industry was pretty low. Either they were too expensive or they were very buggy.

Later I heard the same story from many of my users. But in all my foolishness and enthusiasm, I started writing out my own ERP system. I was always a hobbyist programmer and maybe I had too much faith in my ability, but somehow we got started. In a couple of years though, the famil

AN OPEN TECH STRATEGY FOR INDIA

(A WORKING DRAFT)

Takshashila Report Version 1.1 December 20, 2022

A strategy for India to achieve strategic autonomy, economic growth, technology leadership, and skill development using open-source technologies.

@rmehta
rmehta / foss_india.md
Last active April 28, 2022 10:13
Indian FOSS Timelines, Organizations and Projects

Indian FOSS: Timelines

This is an attempt to cover the history of Indian FOSS

  • 1984: Richard Stallman creates GNU
  • 1980s: TeX (softare in public domain) introduced into Kerala by Prof. K.S.S. Namburipad of the Department of Mathematics in the University of Kerala. Source
  • 1991: Linus Torvalds releaes Linux Kernel
  • 1996: Atul Chitnis and Kishore Bhargava convince CyberMedia (PC Quest) to distribute Linux CDs. Over a million CDs distributed over a span of 10 years. People stood in queues in front of newstands to get a copy of PCQuest.
  • 1998: PCQ swaps Slackware Linux with Red Hat Linux.
  • 1998-2000: Linux user groups (LUGs) start forming in all major cities [pending: link
@rmehta
rmehta / convert.py
Created March 16, 2014 09:48
Extract Voter information from Maharashtra Electoral Rolls (PDF)
# PDF to CSV Converter for Mah Electoral roles
# Usage:
# 1. Place all pdf folders in "source"
# 2. Set "target" to be the folder where you want output files exported
# Note: inner directory structure will be maintained.
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
from pdfminer.converter import HTMLConverter
from pdfminer.layout import LAParams
from cStringIO import StringIO
test_inner_mapping (frappe.event_streaming.doctype.event_producer.test_event_producer.TestEventProducer) ... select `name` from `tabEvent Producer` where `name` = 'http://test_site_producer:8000' order by modified desc
select * from `tabEvent Producer` where `name` = 'http://test_site_producer:8000' order by modified desc
16:11:53 worker_default.1 | select * from `tabDocPerm` where `parent` = 'Document Follow' and `parenttype` = 'DocType' and `parentfield` = 'permissions' order by idx asc
select * from `tabEvent Producer Document Type` where `parent` = 'http://test_site_producer:8000' and `parenttype` = 'Event Producer' and `parentfield` = 'producer_doctypes' order by idx asc
select `password` from `__Auth`
from webclient import *
server = "http://myaccount.erpnext.com/server.py"
user = "your user name"
password = "your password"
login()
customer = get_doc("Customer", customer_name)

Job Posting: Full Stack Software Engineer

Introduction

This is an opportunity to work inside one of the largest government bodies in India to deliver and deploy Free and Open Source solutions to various internal departments that benefit millions of users and citizens.

Requirement

  1. Fresher or fresh engineer with 2-3 years experience