This file contains hidden or 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.hsqldb.util.DatabaseManagerSwing; | |
| //goes on test method | |
| DatabaseManagerSwing.main(new String[] { "--url", "jdbc:hsqldb:mem:dataSource", "--user", "sa", "--password", "" }); |
This file contains hidden or 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
| /usr/libexec/java_home -V | |
| export JAVA_HOME=`/usr/libexec/java_home -v 1.7.0_75` | |
| java -version |
This file contains hidden or 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 br.com.entregaurbana.test.util; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import org.hibernate.cfg.AvailableSettings; | |
| import org.hibernate.cfg.Configuration; | |
| import org.hibernate.dialect.Dialect; | |
| import org.hibernate.engine.jdbc.internal.FormatStyle; |
This file contains hidden or 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
| persistence.xml | |
| <property name="javax.persistence.schema-generation.database.action" value="create"/> | |
| <property name="javax.persistence.schema-generation.scripts.action" value="create"/> | |
| <property name="javax.persistence.schema-generation.scripts.create-target" value="create.ddl"/> | |
| <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/> | |
| <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/db"/> | |
| Java class |
This file contains hidden or 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
| nohup psql -d mydb -f insert.sql > insert.log 2>&1 & |
This file contains hidden or 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
| module.exports = function (sequelize, DataTypes) { | |
| var AlunoCaso = sequelize.define('AlunoCaso', { | |
| dtCriacao: {type: DataTypes.DATEONLY, allowNull: false, field: 'dt_cricao'}, | |
| dtAtualizacao: {type: DataTypes.DATEONLY, allowNull: false, field: 'dt_atualizacao'} | |
| }, | |
| { | |
| createdAt: 'dtCriacao', | |
| updatedAt: 'dtAtualizacao', | |
| timestamps: true, | |
| tableName: 'tb_syn_aluno_caso' |
This file contains hidden or 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
| console.log(Object.keys(location.rawAttributes)); |
This file contains hidden or 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
| mongoimport -d akulaapi -c bancos --type csv --file bancos.csv --headerline | |
| mongodump --db test --collection collection | |
| mongorestore --collection people --db accounts dump/ |
This file contains hidden or 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
| async function teste() { | |
| var namespace = 'br.com.synapsetec'; | |
| var producerType = 'Producer'; | |
| var producerNS = namespace + '.' + producerType; | |
| const AdminConnection = require('composer-admin').AdminConnection; | |
| const BusinessNetworkConnection = require('composer-client').BusinessNetworkConnection; | |
| const cardStore = require('composer-common').NetworkCardStoreManager.getCardStore(); | |
| const { IdCard } = require('composer-common'); | |
| businessNetworkConnection = new BusinessNetworkConnection({ cardStore: cardStore }); |
This file contains hidden or 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
| RUN echo "America/Sao_Paulo" > /etc/timezone \ | |
| && dpkg-reconfigure -f noninteractive tzdata |
OlderNewer