This file contains 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
// para subir o jetty numa determinada porta via linha de comando | |
mvn -Djetty.port=9999 jetty:run | |
// para subir o jetty numa determinada porta via Goals (Eclipse) | |
jetty:stop -Djetty.port=8080 jetty:run |
This file contains 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
select * from v$locked_object; |
This file contains 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
CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" |
This file contains 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
select table_name from user_constraints | |
where r_constraint_name in | |
(select constraint_name | |
from user_constraints | |
where constraint_type in ('P','U') | |
and table_name = upper('&tableOfInterest') | |
) |
This file contains 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
mvn org.glassfish:maven-glassfish-plugin:run |
This file contains 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
Map modelMap = model.asMap(); | |
for (Object modelKey : modelMap.keySet()) { | |
Object modelValue = modelMap.get(modelKey); | |
System.out.println(modelKey + " -- " + modelValue); | |
} |
This file contains 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
dd if=/dev/sdb of=imagem.img bs=1MB | |
of = output | |
if = input | |
bs = Block Size | |
example (tested): | |
# to make an image | |
sudo dd if=/dev/mmcblk0 of=~/Desktop/image.iso bs=1MB |
This file contains 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
# To use cron for tasks meant to run only for your user profile, add entries to | |
# your own user's crontab file. Start the crontab editor from a terminal window: | |
$crontab -e | |
# Commands that normally run with administrative privileges (i.e. they are | |
# generally run using sudo) should be added to the root user's crontab (instead of the user's crontab): | |
$sudo crontab -e | |
# see: | |
# https://help.ubuntu.com/community/CronHowto |
This file contains 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
Este comando efetua a cópia de dados entre duas tabelas dentro de um mesmo banco, ou entre bancos diferentes. | |
Muito útil para equalizar dados para testes, simulações de erros, etc... | |
A sintaxe é: | |
COPY FROM <db> TO <db> <opt> <tbl> {<<cls>>} USING <sel> | |
Onde: | |
<db> : string de banco de dados, ex.: usuário/senha@banco1 | |
<opc>: Uma das palavras chaves: APPEND, CREATE, INSERT ou REPLACE |
This file contains 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
# %APPENGINE_HOME%/appcfg.sh update "WAR_PATH" | |
# Enter your Google username and password at the prompts. | |
# see: https://developers.google.com/appengine/docs/java/gettingstarted/uploading | |
/opt/appengine-java-sdk-1.8.0/bin/appcfg.sh update target/gae-springmvc-template-0.0.1-SNAPSHOT |
OlderNewer