This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -it -d -v ~/.bitcoin:/blockchain -p 80:4200 -p 18333:18333 -p 18332:18332 -p 5000:5000 84fe0610c41d | |
redis-server & | |
service postgresql start | |
bitcoind | |
ng serve --host 0.0.0.0 | |
celery worker -A app.celery -l info & | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | |
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"> | |
<changeSet author="Isuranga Perera" id="subscription_management_module_19062018_1"> | |
<preConditions onFail="MARK_RAN"> | |
<not> | |
<tableExists tableName="event"/> | |
</not> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// cluster_manager.cpp | |
// blocksci | |
// | |
// Created by Harry Kalodner on 7/6/17. | |
// | |
// | |
#include <blocksci/cluster/cluster_manager.hpp> | |
#include <blocksci/cluster/cluster.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<listener type="pre-delete" class="org.mycompany.dao.listener.impl.HibernateAuditLogListener"/> | |
<listener type="pre-update" class="org.mycompany.dao.listener.impl.HibernateAuditLogListener"/> | |
<listener type="pre-insert" class="org.mycompany.dao.listener.impl.HibernateAuditLogListener"/> | |
<listener type="pre-load" class="org.mycompany.dao.listener.impl.HibernateAuditLogListener"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
import java.util.Collection; | |
import java.util.Date; | |
import org.hibernate.EntityMode; | |
import org.hibernate.HibernateException; | |
import org.hibernate.StatelessSession; | |
import org.hibernate.cfg.Configuration; | |
import org.hibernate.event.Initializable; | |
import org.hibernate.event.PreDeleteEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE AUDIT_TRAIL | |
( | |
ID NUMBER NOT NULL, | |
ENTITY_ID VARCHAR2(50) NOT NULL, | |
ENTITY_NAME VARCHAR2(50) NOT NULL, | |
ENTITY_PROPERTY VARCHAR2(50) NOT NULL, | |
ENTITY_PROPERTY_OLD_VALUE VARCHAR2(4000), | |
ENTITY_PROPERTY_NEW_VALUE VARCHAR2(4000), | |
OPERATION_TYPE VARCHAR2(50), | |
ACTOR_ID NUMBER NOT NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.model.audit; | |
import java.io.Serializable; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Modifier; | |
import java.util.Arrays; | |
import java.util.Date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc; | |
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | |
@Configuration | |
@EnableWebMvc | |
public class WebMvcConfig extends WebMvcConfigurerAdapter { | |
@Override | |
public void addResourceHandlers(ResourceHandlerRegistry registry) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Predicate; | |
import com.google.common.base.Predicates; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import springfox.documentation.builders.ApiInfoBuilder; | |
import springfox.documentation.builders.PathSelectors; | |
import springfox.documentation.builders.RequestHandlerSelectors; | |
import springfox.documentation.service.ApiInfo; | |
import springfox.documentation.spi.DocumentationType; | |
import springfox.documentation.spring.web.plugins.Docket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile "io.springfox:springfox-swagger2:2.6.1" | |
compile 'io.springfox:springfox-swagger-ui:2.6.1' |
NewerOlder