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
# Create a launcher on directory /usr/share/applications | |
vim /usr/share/applications/app-name.desktop | |
# Create a file app-name.desktop and edit with exemple below: | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=IntelliJ IDEA Ultimate Edition | |
Icon=/opt/idea/bin/idea.svg |
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
# Open the directory /opt | |
cd /opt/ | |
# Decompile the intellij archive | |
sudo tar -xvzf ~/Downloads/ideaIC-2020.2.tar.gz | |
# Change the name for better manipulation | |
sudo mv idea-IC-202.6397.94 idea | |
# Run the executable file |
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
// Install NgxViaCep with npm and follow the installation instructions | |
// Link: https://www.npmjs.com/package/@brunoc/ngx-viacep | |
constructor(private viacep: NgxViacepService) {} | |
/* ------------------------------------- CEP ------------------------------------ */ | |
buscarCep(): void { | |
let cep: string = this.registerForm.get(['cep'])!.value; | |
if (cep) { |
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
entity Objet1 { | |
atributo1 String | |
atributo2 String | |
status Boolean | |
} | |
entity Objet2 { | |
atributo1 String | |
atributo2 String | |
status Boolean |
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
/* ------------------------------ STATUS TOGGLE--------------------------------- */ | |
li.borderless { | |
border-top: 0 none; | |
} | |
.check-box-scged > input[type='checkbox'] { | |
display: none; | |
} | |
.check-box-scged > label { |
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
<div class="form-group col-md-3"> | |
<label class="form-control-label" name="cpf">CPF</label> | |
<input type="text" class="form-control" name="cpf" id="cpf" for="cpf" | |
[textMask]="maskCpf" formControlName="cpf" required> | |
<div *ngIf="editForm.get('cpf')!.invalid && (editForm.get('cpf')!.dirty || editForm.get('cpf')!.touched)"> | |
<small class="form-text text-danger" | |
*ngIf="editForm.get('cpf')?.errors?.required"> | |
This field is required. | |
</small> |
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
# Edit application.properties and insert one of all this script below: | |
## Postgresql: | |
### Obs: Must to create a database and user on postgresql cliente before to execute this script. | |
spring.jpa.database=POSTGRESQL | |
spring.datasource.url=jdbc:postgresql://localhost/projectNameDatabase | |
spring.datasource.username=projectName | |
spring.datasource.password=projectName |
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
## Install: | |
sudo apt update | |
sudo apt install mysql | |
## Configure: | |
sudo mysql -u root -p | |
USE mysql; | |
SELECT User, Host, plugin='mysql_native_password' WHERE User='root'; | |
FLUSH PRIVILEGES; | |
exit; |
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
# Config gitflow init | |
master | |
develop | |
feature/ | |
release/ | |
hotfix/ | |
support/ | |
bugfix/ |
OlderNewer