Status of all services:
service --status-all
Status of any service:
service wildfly status
CREATE FUNCTION dermage_regua.gender(currentGender varchar(1)) RETURNS varchar(1) CHARSET utf8 | |
BEGIN | |
declare gender varchar(1); | |
IF currentGender IN ('F','M') THEN SET gender = currentGender; | |
ELSE SET gender = 'F'; | |
END IF; | |
RETURN gender; | |
END |
USE [nomeSeuBancoDeDados]; | |
CHECKPOINT; | |
GO | |
CHECKPOINT; -- run twice to ensure database file wrap-around last transactions | |
GO | |
-- 200 MB | |
DBCC SHRINKFILE(nomeSeuBancoDeDados_log, 200); |
-- 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; |
-- ============================================================================ | |
-- 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 |
public enum Status { | |
P("Pending"), | |
A("Approved"); | |
private String name; | |
Status(String name) { | |
this.name = name; | |
} |
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.
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