See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
| #! /usr/bin/env bash | |
| set -euo pipefail | |
| _usage() { | |
| echo " | |
| Usage: | |
| git-force-clone -b branch remote_url destination_path | |
| Example: |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
Illuminate\Database\QueryException
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
Após longo debate com o suporte de uma famosa empresa de hospedagem e colocado em uma fila de espera para ter o DB migrado para versão MySQL >= v. 5.7, fiz minha própria analise para entender o porquê de tal comportamento. Consultei informações na web e me deparei com alguns comentários referente a cálculo de bytes, como pode ser visto no site Stack Exchange mais especificamente na parte de Database Administrators, onde no final de uma das respostas uma observação feita chamou minha atenção: "Also, have a look at why varchar(255) is a bad idea."!
| OCTANE_SERVER=swoole | |
| OCTANE_HTTPS=true |
| // ==UserScript== | |
| // @name Google Slash Search | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.google.com/search* | |
| // @grant none | |
| // ==/UserScript== |
| # Para um novo projeto, crie esta estrutura | |
| [dev-user1] $ mkdir projeto | |
| [dev-user1] $ cd projeto | |
| [dev-user1] $ git init | |
| [dev-user1] $ touch README | |
| [dev-user1] $ git add . | |
| [dev-user1] $ git commit -am "Initial commit" | |
| # Crie no servidor um repositório do tipo bare para "guardar" os commits | |
| [bare-server1] $ mkdir -p /git/projeto |
| // app/Http/Controllers/DashboardController.php | |
| <?php | |
| namespace App\Http\Controllers; | |
| use App\Models\Visitor; | |
| use Illuminate\Support\Facades\DB; | |
| class DashboardController extends Controller | |
| { |
| { | |
| "files.autoSave": "onFocusChange", | |
| "editor.fontLigatures": true, | |
| "editor.fontFamily": "Fira Code SemiBold, Consolas, 'Courier New', monospace", | |
| "editor.fontSize": 20, | |
| "editor.wordWrap": "wordWrapColumn", | |
| "editor.tabSize": 2, | |
| "prettier.requireConfig": false, | |
| "prettier.semi": false, | |
| "editor.codeActionsOnSave": { "source.fixAll": true }, |
| php artisan tinker | |
| $tables = DB::select('SHOW TABLES'); | |
| $tables_in_database = "Tables_in_".Config::get('database.connections.mysql.database'); | |
| DB::statement('SET FOREIGN_KEY_CHECKS=0;'); | |
| foreach ($tables as $table) { | |
| Schema::drop($table->$tables_in_database); | |
| } |