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
public static void main(String[] args) { | |
Collection<Object[]> minhaCollection = new ArrayList<Object[]>(); | |
minhaCollection.add(new String[] {"Azul", "Amarelo", "Verde"}); | |
minhaCollection.add(new Integer[] {1, 32, 123}); | |
minhaCollection.add(new Double[] {1.1, 32.1, 123.1}); | |
for (Object[] obj : minhaCollection) { | |
for (Object object : obj) { | |
System.out.println(object); |
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
mencoder -sub LEGENDA.srt -ovc xvid -xvidencopts bitrate=-700000 -oac copy -o NOVO_ARQUIVO.avi ARQUIVO.avi |
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 java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import junitx.framework.AssertionFailedError; | |
import org.junit.Assert; |
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
--Logado como system, seu maconheiro | |
SELECT * FROM V$SESSION WHERE USERNAME LIKE <<USERNAME>> | |
ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE; |
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
InputStream is = new FileInputStream("Nome do arquivo 1"); | |
InputStream is1 = new FileInputStream("Nome do arquivo 2"); | |
try { | |
MessageDigest oi = MessageDigest.getInstance("MD5"); | |
is = new DigestInputStream((InputStream)is, oi); | |
byte[] bites = oi.digest(); | |
MessageDigest oi2 = MessageDigest.getInstance("MD5"); | |
is2 = new DigestInputStream((InputStream)is2, oi2); |
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
find ./ | xargs grep -s -a -i COD_TIPO_TRANS | cut -d : -f 1 | uniq |