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
# Primeira coisa a ser feita (caso não tenha feito ainda) é rodar os três comandos abaixo: | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/vscode.repo' | |
sudo zypper refresh | |
# Depois rodar o comando que vai atualizar o pacote |
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
To get rid of webpack-dev-server status bar when compiling Angular script there is an easy solution. No change in configuration is ncessary. | |
When running ng serve it will give the following link http://localhost:4200/webpack-dev-server/ | |
Just remove the last part of it "webpack-dev-server/" | |
BANG! no status bar. Problem solved! |
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
Windows | |
File | Default Settings | Editor | Inspections | Spelling | |
MacOS | |
WebStorm | Preferences | Editor | Inspections | Spelling |
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
For some reason PHPStorm 2019 file dialog do not show rename option, at least on MacOS. To rename a file you have to use your keyboard shortcut: | |
FN+SHIFT+F6 |
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 location | |
import {Location} from '@angular/common'; | |
// add in constructor | |
private location: Location | |
//Updating current url | |
this.location.replaceState(`/my/url/${this.code}/${this.id}`); |
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
-- Before running queries | |
SET FOREIGN_KEY_CHECKS=0; | |
-- RUN ALL QUERIES | |
-- Then return back to default | |
SET FOREIGN_KEY_CHECKS=1; |
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
# To fix the problem, just run | |
xcode-select --install |
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
$ brew update | |
$ brew upgrade | |
$ brew cleanup |
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
# Add the no-cache-dir to pip command: | |
pip install nameOfPacket --no-cache-dir |
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
brew unlink git-flow | |
brew install git-flow-avh --HEAD | |
git config gitflow.multi-hotfix true | |
git config --get gitflow.multi-hotfix | |
git flow hotfix start my_hotfix_name |