Skip to content

Instantly share code, notes, and snippets.

View vaskaloidis's full-sized avatar

Vas Kaloidis vaskaloidis

View GitHub Profile
@vaskaloidis
vaskaloidis / liferay-ignore.txt
Created November 18, 2016 10:00
The .gitignore file for Liferay, as a text file.
!/sql/update-*.sql
**/.gradle
**/.settings
**/.sonar
**/pmd-reports
*.bak
*.iml
*.ipr
*.iws
*.swp
@vaskaloidis
vaskaloidis / liferay-svn-ignore.py
Last active November 18, 2016 10:03
Python script that parses a Liferay .gitignore file, and runs an svn:ignore against each row (file, file-type or dir) in the .gitignore file.
#! /usr/bin/python
#
# Build the entire ISAAC Project
import subprocess
import os
import sys
#args.extend(['package'])
defaultArgs = ['propset', 'svn:ignore']
package com.apelon.openhie.dataimportexport.util.logging;
import org.apache.log4j.Logger;
public class LoggerForIntegrationTests {
private static final Logger logger = Logger.getLogger(LoggerForIntegrationTests.class);
public static Logger get() {
return logger;
package com.apelon.openhie.dataimportexport.util.logging;
import org.apache.log4j.Logger;
public class LoggerForApplication {
private static final Logger logger = Logger.getLogger(LoggerForApplication.class);
public static Logger get() {
return logger;
@vaskaloidis
vaskaloidis / Default.sublime-commands
Created January 11, 2016 09:11
Sublime Text 3 commands for command-pallete config file + command-palleate commands for extensions (like Evernote). These can be used with Command-Line Sublime Text as "subl --commmand open_evernote_note"
[
{ "command": "send_to_evernote", "caption": "Evernote: Send to Evernote as new note" },
{ "command": "send_to_evernote", "args": {"clip": true}, "caption": "Evernote: Clip to Evernote as new note" },
{ "command": "open_evernote_note", "caption": "Evernote: Open Evernote Note" },
{ "command": "view_in_evernote_webapp", "caption": "Evernote: View Note in Web App" },
{ "command": "view_in_evernote_client", "caption": "Evernote: View Note in Evernote client" },
{ "command": "open_evernote_note", "args": {"by_searching": true}, "caption": "Evernote: Search Note" },
{ "command": "open_evernote_note", "args": {"max_notes": 10, "by_searching": "*", "order": "updated", "ascending": false}, "caption": "Evernote: List recent notes" },
{ "command": "attach_to_evernote_note", "caption": "Evernote: Attach current file to a note" },
{ "command": "insert_link_to_evernote_note", "caption": "Evernote: Insert link to a note (browse)" },
@vaskaloidis
vaskaloidis / 1670.json
Created December 10, 2015 18:21
Attempting to update a Resource Map layer with HL7 Data, by using this command against endpoint: http://resourcemap.instedd.org/api/collections/1666/layers/1670.json
{
"layer":{
"id":"1670",
"name":"Medical Facility Information",
"ord":"1",
"fields_attributes":{
"0":{
"id":"13377",
"name":"Facility Type",
"code":"facility_type",
[
{
"id":1673,
"collection_id":1666,
"name":"Address",
"created_at":"2015-10-19T19:45:22.000Z",
"updated_at":"2015-10-20T14:59:10.000Z",
"ord":1,
"anonymous_user_permission":"none",
"fields":[
@vaskaloidis
vaskaloidis / va-pull-repos-new.py
Last active August 29, 2015 14:19
Python Script to Git Clone each Apelon-VA ISAAC + OCHRE Framework
#! /usr/bin/python
#
# Pull each Apelon-VA Repo
#
import subprocess
import os
def git(*args):
return subprocess.Popen(['git'] + list(args), shell=True, stdout=subprocess.PIPE).communicate()[0]
@vaskaloidis
vaskaloidis / va-build-all.py
Last active August 29, 2015 14:19
va-buil-all.py
#! /usr/bin/python
#
# Build the entire ISAAC Project
import subprocess
import os
import sys
projects = ['va-isaac-parent',
'va-ochre',
<build>
<plugins>
<plugin>
<groupId>apelon</groupId>
<artifactId>vas</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>