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
vim my-file.txt | |
# On VIM just type the following command to remove BOM | |
:set nobomb | |
# Saving the file | |
:wq! |
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
Problem: PHP Artisan Tinker crashes from issuing any command and leaves no logs. | |
Solution: | |
According to developer's forum: https://github.com/bobthecow/psysh/issues/540#issuecomment-446480753 it is necessary to edit | |
the following file: | |
~/.config/psysh/config.php in case the file do not exist just create a new one vim ~/.config/psysh/config.php | |
Add the following content: |
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
return response($myImagePath, 200)->header('Content-Type', 'image/jpeg'); |
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
//File: app\Providers\RouterServiceProvider.php | |
// Removing prefix line | removendo a linha de prefixo | |
//Mudar | Change | |
protected function mapApiRoutes() | |
{ | |
Route::prefix('api') | |
->middleware('api') | |
->namespace($this->namespace) | |
->group(base_path('routes/api.php')); |
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
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <barryvdh@gmail.com> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
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
php artisan cache:clear | |
php artisan view:clear | |
php artisan route:clear | |
php artisan clear-compiled | |
php artisan config:cache |
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
-- An easy way to find which mysql.sock is being used and the path of it, simply log in into your mysql and run this command: | |
SHOW VARIABLES LIKE '%sock%'; |
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
# After getting into the system from a snapshot, use the following command to set the snapshot | |
snapper rollback |
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
# 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 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! |
OlderNewer