Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
1:1 In the beginning God created the heaven and the earth.
1:2 And the earth was without form, and void; and darkness was upon
the face of the deep. And the Spirit of God moved upon the face of the
waters.
1:3 And God said, Let there be light: and there was light.
1:4 And God saw the light, that it was good: and God divided the light
from the darkness.
@romgapuz
romgapuz / pickle2json.py
Created May 18, 2020 07:26
Tool for converting Pickle to JSON using this simple Python Command Line program
"""
Pickle2JSON is a simple Python Command Line program for converting Pickle file to JSON file.
Arguments: Only one (1) argument is expected which is the pickle file.
Usage: python pickle2json.py myfile.pkl
Output: The output is a JSON file bearing the same filename containing the JSON document of the converted Pickle file.
"""
# import libraries
import pickle
@romgapuz
romgapuz / install-erpnext-ec2.md
Created July 3, 2019 16:23
Install ERPNext into Amazon EC2

Install ERPNext into Amazon EC2

These are the steps to install a standalone ERPNext into an Amazon EC2 instance running Ubuntu 18.04.

Create and connect to an EC2 instance

After connecting, run an update:

@romgapuz
romgapuz / pg_create_user_db_with_grant.sql
Created April 4, 2017 13:47
PostgreSQL Create User and Database and grant permission
CREATE USER username WITH PASSWORD 'password';
CREATE DATABASE database_name;
GRANT ALL PRIVILEGES ON DATABASE database_name to username;
from celery.task.control import discard_all
discard_all()