docker-compose build --no-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
#!/bin/bash | |
OLD_EMAIL="oldmail@email.com" | |
NEW_EMAIL="newmail@email.com" | |
# Verify that the old email exists in the commit history | |
if git log --all --grep="$OLD_EMAIL" --author="$OLD_EMAIL" --oneline --quiet; then | |
# Rewrite the Git history | |
git filter-branch --env-filter " | |
if [ \"\$GIT_AUTHOR_EMAIL\" = \"$OLD_EMAIL\" ]; then |
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
eval "$(oh-my-posh init bash)" | |
eval "$(oh-my-posh init bash --config $HOME/.cache/oh-my-posh/themes/json.omp.json)" |
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 | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |
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 Retorna a cotação atual de um título específico do Tesouro Direto. | |
* Fonte: https://www.tesourodireto.com.br/titulos/precos-e-taxas.htm | |
**/ | |
function TESOURODIRETO(bondName, argumento="r") { | |
let srcURL = "https://www.tesourodireto.com.br/json/br/com/b3/tesourodireto/service/api/treasurybondsinfo.json"; | |
let jsondata = UrlFetchApp.fetch(srcURL); | |
let parsedData = JSON.parse(jsondata.getContentText()).response; | |
for(let bond of parsedData.TrsrBdTradgList) { |
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
DROP TABLE IF EXISTS TB_HEROIS; | |
CREATE TABLE TB_HEROIS ( | |
ID INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY NOT NULL, | |
NOME TEXT NOT NULL, | |
PODER TEXT NOT NULL | |
) | |
--create | |
INSERT INTO TB_HEROIS (NOME, PODER) | |
VALUES |
https://laravel.com/docs/8.x/eloquent#observers
Por padrão, quando realizamos alterações em massa em um model via eloquent, nenhum evento será disparado para os models afetados. Basicamente significa utilizar o where('xpto', $xpto) para encontrar registros no banco de dados. Mesmo que via de regra utilizemos o where() para encontrar um id, o eloquent não vai disparar eventos.
P: O que fazer fazer para resolver?
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
NewerOlder