Skip to content

Instantly share code, notes, and snippets.

View angshu's full-sized avatar

angshuman sarkar angshu

  • Bangalore, India
View GitHub Profile
@angshu
angshu / gist:339e6430d7a4b1d53da7
Last active August 29, 2015 14:05
Relationship model suggestion
[
{
type: "father",
name_bangla: "",
name: "Sahidul Hasan",
hid: 652,
brn: null,
nid: 5213,
status:"deceased",
certificate_type: "birth",
@angshu
angshu / gist:b20c68bd0e1c1789c1d0
Created September 11, 2014 14:22
bdshr-config liquibase error
home/bahmni/apache-tomcat-7.0.22/webapps
+ CHANGE_LOG_TABLE='-Dliquibase.databaseChangeLogTableName=liquibasechangelog -Dliquibase.databaseChangeLogLockTableName=liquibasechangeloglock'
+ LIQUIBASE_JAR=/home/bahmni/apache-tomcat-7.0.22/webapps/openmrs/WEB-INF/lib/liquibase-core-2.0.5.jar
+ DRIVER=com.mysql.jdbc.Driver
+ CREDS='--url=jdbc:mysql://localhost:3306/openmrs --username=root --password=password'
+ CLASSPATH=/packages/build/distro-5.0-SNAPSHOT/openmrs-webapp-1.10.0-SNAPSHOT.war
+ WORKING_DIR=/packages/build/bdshr_config/migrations
+ cd /packages/build/bdshr_config/migrations
+ java -Dliquibase.databaseChangeLogTableName=liquibasechangelog -Dliquibase.databaseChangeLogLockTableName=liquibasechangeloglock -jar /home/bahmni/apache-tomcat-7.0.22/webapps/openmrs/WEB-INF/lib/liquibase-core-2.0.5.jar --driver=com.mysql.jdbc.Driver --classpath=/packages/build/distro-5.0-SNAPSHOT/openmrs-webapp-1.10.0-SNAPSHOT.war --changeLogFile=liquibase.xml --url=jdbc:mysql://localhost:3306/openmrs --username=root --passwor
@angshu
angshu / gist:ea0ecd6bd54bbc70194f
Last active August 29, 2015 14:13
Patient Feed following google json feed
{
"author": "MCI",
"title": "Patients",
"feedUrl": "http://emicro.uk.to:6881/api/v1/patients/updated-after/2014-01-10T08:10:41Z",
"nextArchive": "http://emicro.uk.to:6881/api/v1/patients/updated-after/2015-01-19T10:08:05Z",
"prevArchive": null,
"entries": [
{
"id": "860e5faf-9db0-49f4-b25f-5f9d0a3bfa60",
"publishedDate": "2015-01-19T08:20:29Z",
{
"name": "example_form",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"formType": "IntakeForm",
"version": "0.01",
"validators": [
{
..
},
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-6.9"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provider "virtualbox" do |vb|
@angshu
angshu / gist:b14a7387c071f6c3e9daf803fd00cf99
Created December 10, 2018 20:15
problem with SAXParser
<!DOCTYPE html>
<html>
<head>
<title>Apache Tomcat/8.0.12 - Error report</title>
<style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style>
</head>
<body>
<h1>HTTP Status 500 - Handler processing failed; nested exception is java.lang.ExceptionInInitializerError</h1>
<div class="line"></div>
<p>
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.box_check_update = true
config.ssh.insert_key = false
config.vm.network "private_network", ip: "192.168.33.10"
# config.vm.synced_folder "..", "/bahmni", :owner => "vagrant"
# To see the list of valid variables in Bahmni please refer to:
# https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
timezone: Asia/Kolkata
implementation_name: default
selinux_state: disabled
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.box_check_update = true
config.ssh.insert_key = false
config.vm.network "private_network", ip: "192.168.33.92"
config.vm.synced_folder "..", "/bahmni", :owner => "vagrant"
- name: Fallback to pgsqldump if pgbackrest not installed
debug:
msg: pgbackrest is not installed - {{ installed_pgbackrest.stdout.find("pgbackrest [options] [command]") == -1 }}
- name: run pgbackrest if it is installed
debug:
msg: pgbackrest is installed - {{ installed_pgbackrest.stdout.find("pgbackrest [options] [command]") >= 0 }}