Skip to content

Instantly share code, notes, and snippets.

View altitdb's full-sized avatar

Altieres de Matos altitdb

View GitHub Profile
@MySQL
Liberar acesso de outros hosts.
grant all on *.* to root@'%' identified by 'root';
@altitdb
altitdb / gist:3239717
Created August 2, 2012 18:56
m2eclipse
How do I Download m2eclipse?
Maven - http://download.eclipse.org/technology/m2e/releases
https://support.sonatype.com/entries/20914842.html?__utma=246996102.2011723869.1343932852.1343932852.1343933261.2&__utmb=246996102.8.10.1343933261&__utmc=246996102&__utmx=-&__utmz=246996102.1343933261.2.2.utmcsr=google|utmccn=%28organic%29|utmcmd=organic|utmctr=%28not%20provided%29&__utmv=-&__utmk=12338743
@Oracle
Atribuir privilégios de DBA para usuário.
GRANT DBA TO my_user;
@Oracle
Deletar usuário e objetos.
drop user my_user cascade;
@Oracle
Listar todos os usuários.
select * from dba_users;
@Oracle
Alterar senha usuário.
1.
alter user my_user identified by my_password;
2.
alter user my_user identified by values 'code_hash_generated_by_oracle';
@Oracle
Exportar/Importar database.
Export FULL:
exp my_user/my_password@my_database full=y file=name_my_dump.dmp
Import FULL:
imp my_user/my_password@my_database full=y file=name_my_dump.dmp
@Java
When you override the equals method, you must adhere to its general contract. Here
is the contract, copied from the specification for java.lang.Object:
The equals method implements an equivalence relation:
• It is reflexive: For any reference value x, x.equals(x) must return true.
• It is symmetric: For any reference values x and y, x.equals(y) must return true
if and only if y.equals(x) returns true.
@Oracle
Atribuir permissão para um objeto para determinado usuário
grant my_operation on my_object to my_user;
my_operation:
execute
insert
select
@JSF
Customização de mensagens de conversão e validação
javax.faces.component.UIInput.CONVERSION=
javax.faces.component.UIInput.CONVERSION_detail=
javax.faces.component.UIInput.REQUIRED=
javax.faces.component.UIInput.REQUIRED_detail=Campo obrigatório
javax.faces.component.UISelectOne.INVALID=
javax.faces.component.UISelectOne.INVALID_detail=