#Terminal filé https://blog.rocketseat.com.br/terminal-com-oh-my-zsh-spaceship-dracula-e-mais/
#Certificado ssl localhost https://medium.com/internshala-tech/adding-self-trusted-ssl-certificate-for-localhost-on-ubuntu-nginx-c66d70b22e4b
| package_name("com.foo.bar") |
| arg=${1} | |
| pattern=".*file(:\/\/|\=)(.*)&line=(.*)" | |
| # Get the file path. | |
| lineFile=$(echo "${arg}" | sed -r "s/${pattern}/\2/") | |
| file=$(echo "${lineFile}" | sed 's/\%2F/\//g') | |
| # Get the line number. | |
| line=$(echo "${arg}" | sed -r "s/${pattern}/\3/") |
| .vscode/launch.json | |
| xmlsqlite.db3 | |
| .vscode/settings.json |
| Install Redis extension on your pc | |
| Download the CORRECT version the DDL from the following link | |
| https://pecl.php.net/package/redis/4.1.0/windows | |
| Put the dll in the correct folder | |
| Wamp -> C:\wamp\bin\php\php-XXXX\ext | |
| Laragon -> C:\laragon\bin\php\php-XXX\ext | |
| Edit the php.ini file adding |
| <?php | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class LaravelConditionalIndexMigration extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
| #server side: | |
| #server live directory: /var/www/domain.com | |
| #server repository: /var/repo/site.git | |
| 1. clone project from git/bitbucket into /var/www/domain.com or init the folder by "git init". | |
| 2. go to /var/repo/site.git and init the folder as git bare | |
| $git init --bare | |
| --bare means that our folder will have no source files, just the version control. |
| To put this folder on the PATH environment variable type | |
| export PATH="$PATH:$HOME/.composer/vendor/bin" | |
| This appends the folder to your existing PATH, however, it is only active for your current terminal session. | |
| If you want it to be automatically set, it depends on the shell you are using. For bash you can append this line to $HOME/.bashrc using your favourite editor or type the following on the shell | |
| echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc |