Skip to content

Instantly share code, notes, and snippets.

View pedroreissantos's full-sized avatar

Pedro Reis dos Santos pedroreissantos

View GitHub Profile
@pedroreissantos
pedroreissantos / drive.xml
Created February 21, 2016 15:03
Exemplos do projecto myDrive (Engenharia de Software, IST, 2016)
<?xml version="1.0" encoding="UTF-8"?>
<myDrive>
<user username="jtb">
<password>fernandes</password>
<name>Joaquim Teófilo Braga</name>
<home>/home/jtb</home>
<mask>rwxdr-x-</mask>
</user>
<user username="mja">
<name>Manuel José de Arriaga</name>
@pedroreissantos
pedroreissantos / default maven plugin settings
Last active February 24, 2016 20:36
Default maven settings (Engenharia de Software, IST, 2016)
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@pedroreissantos
pedroreissantos / DbaseClean.java
Last active March 13, 2016 20:09
Exemplos de introdução aos componentes do projeto (Engenharia de Software, IST, 2016)
/*
* DbaseClean
* Drop a database, if exists, and create a new empty one.
* Collect database info from a resource file.
*
* When using embeded in an application must be called outside a transaction
* (@Atomic) or connection to the same database server!
*
* javac DbaseClean.java
* java -cp mysql-connector-java-5.1.38.jar:. DbaseClean
@pedroreissantos
pedroreissantos / fenix-framework-jvstm-ojb.properties
Last active February 24, 2016 20:36
Setup do projeto )Engenharia de Software, IST, 2016)
# using special INFER_APP_NAME to do just that
appName=INFER_APP_NAME
# FIXME: replace DBASE USER PASSWD
dbAlias=//localhost:3306/DBASE?useUnicode=true&amp;characterEncoding=UTF-8&amp;clobCharacterEncoding=UTF-8&amp;zeroDateTimeBehavior=convertToNull
dbUsername=USER
dbPassword=PASSWD