Skip to content

Instantly share code, notes, and snippets.

View dobau's full-sized avatar
💻
Coding...

Rafael Alves dobau

💻
Coding...
View GitHub Profile
# Java
*.class
*.jar
*.war
*.ear
# Eclipse
.project
.classpath
.settings
@dobau
dobau / persistence.xml
Created July 4, 2018 01:26 — forked from halyph/persistence.xml
persistence.xml MySQL settings
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="org.hibernate.tutorial.jpa" transaction-type="RESOURCE_LOCAL">
<description>
Persistence unit for the JPA tutorial of the Hibernate Getting Started Guide
</description>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
@dobau
dobau / MSSQL Hints
Created July 25, 2011 14:22 — forked from arianmaykon/MSSQL Hints
Comandos e dicas para Microsoft SQL Server.
--CONVERTE uma data passada pra formato ANSI/string
select convert(varchar(8), getdate(), 108)
ex.:
--seleciona os registros onde a hora de dataout = '00:00:00'
select * from mot_0000_estadia
where convert(varchar(8), dataout, 108) = '00:00:00'
#!/usr/bin/env python
# A simple python script to grab all your photos from flickr,
# dump into a directory - organised into folders by set -
# along with any favourites you have saved.
#
# Based on FlickrTouchr 1.2 plus:
# - Video download support
# - Photo title on filename
#