Skip to content

Instantly share code, notes, and snippets.

View iradofurioso's full-sized avatar
🧠
Make it work, Make it right, Make it fast

Carlos Eduardo iradofurioso

🧠
Make it work, Make it right, Make it fast
View GitHub Profile
@iradofurioso
iradofurioso / bash
Created July 18, 2019 12:36
Como atualizar o VisualCode no OpenSUSE LEAP
# 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
@iradofurioso
iradofurioso / txt
Created July 22, 2019 14:05
Get rid of webpack-dev-server status bar
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!
@iradofurioso
iradofurioso / txt
Created August 3, 2019 16:16
Disable spell check WebStorm or PHPStorm - Desativar verificação ortográfica
Windows
File | Default Settings | Editor | Inspections | Spelling
MacOS
WebStorm | Preferences | Editor | Inspections | Spelling
@iradofurioso
iradofurioso / txt
Created August 10, 2019 01:01
PHPStorm Rename Shortcut
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
@iradofurioso
iradofurioso / ts
Created August 12, 2019 21:24
Updating Current URL in Angular 7 Apps | Pretty URL | Friendly URL
// 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}`);
@iradofurioso
iradofurioso / sql
Created October 3, 2019 14:00
Disable foreign key constraint in MySQL temporarily
-- Before running queries
SET FOREIGN_KEY_CHECKS=0;
-- RUN ALL QUERIES
-- Then return back to default
SET FOREIGN_KEY_CHECKS=1;
@iradofurioso
iradofurioso / gist:e63e94776297960867914a8c62c02fce
Created October 20, 2019 14:30
Brew - Homebrew - macOS Catalina - Error showing “xcrun: error: invalid active developer path” when running brew update
# To fix the problem, just run
xcode-select --install
@iradofurioso
iradofurioso / shell
Created October 20, 2019 15:23
MacOS Catalina fix brew | home-brew
$ brew update
$ brew upgrade
$ brew cleanup
@iradofurioso
iradofurioso / shell
Last active October 30, 2019 12:48
Python avoid message: Failed building wheel for...
# Add the no-cache-dir to pip command:
pip install nameOfPacket --no-cache-dir
@iradofurioso
iradofurioso / sh
Created April 6, 2020 18:37
GIT - GIT FLOW - Problem - There is an existing hotfix branch - Finish that one first
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