I hereby claim:
- I am alexruzenhack on github.
- I am alexruzenhack (https://keybase.io/alexruzenhack) on keybase.
- I have a public key ASC34fYJAaMWmK-pb0_JSKiXSKWCwM4_AyX2KpBA2kC-hAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
git checkout -b <branch name>
staging area
git add <. para adicionar tudo | path endereço do arquivo>
commit
descritivo da tarefa realizada, dos arquivos alterados
git commit -m "Descrever atividade"
git pull origin master
git merge master
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
public enum Status { | |
P("Pending"), | |
A("Approved"); | |
private String name; | |
Status(String name) { | |
this.name = name; | |
} |
-- ============================================================================ | |
-- 1. Limitamos o tamanho do log a 200MB com variação de 50MB; | |
-- alter log size of database | |
USE [yourDatabase]; | |
GO | |
ALTER DATABASE [yourDatabase] | |
MODIFY FILE | |
(NAME = yourDatabase_log,SIZE = 200MB, FILEGROWTH = 50MB); | |
GO |
-- step 01 - Set the database into emergency mode | |
ALTER DATABASE yourDatabase SET EMERGENCY; | |
-- step 02 - Emegency mode repair | |
ALTER DATABASE yourDatabase SET SINGLE_USER | |
DBCC CHECKDB(yourDatabase, REPAIR_ALLOW_DATA_LOSS); | |
-- steop 03 - Unlock the database setting it into multiuser again | |
ALTER DATABASE yourDatabase SET MULTI_USER; |
USE [nomeSeuBancoDeDados]; | |
CHECKPOINT; | |
GO | |
CHECKPOINT; -- run twice to ensure database file wrap-around last transactions | |
GO | |
-- 200 MB | |
DBCC SHRINKFILE(nomeSeuBancoDeDados_log, 200); |