Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com
//i.ytimg.com
Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
-
Player Background Thumbnail (480x360):
Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com
//i.ytimg.com
Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
Player Background Thumbnail (480x360):
Para criar um projeto em Docker que possibilite rodar localmente, executar consultas e adicionar dados, vamos seguir os seguintes passos:
README.md
com as instruções de como usar o projeto..zip
com todos os arquivos necessários para você executar localmente.const toBool = (val) => {
return [
false, 'false', '', null, 'null', undefined, 'undefined',
'0', 0, 'no', 'n', 'off', 'nao', 'não', 'no', 'n', 'off',
].includes(val);
}
const expandDebugContent_FromLs = () => {
if (typeof localStorage !== 'undefined') {
You can check if the code is running during build time using Nuxt's built-in composables. Here's how to do it:
if (process.client && !import.meta.env.SSR) {
console.log('This will only run on client-side and not during build')
}
Or alternatively using Nuxt's composable:
# Replace by the key
@GEMINI_API_KEY=AI13N4
#####
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key={{GEMINI_API_KEY}}" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"contents": [{
O GitHub oferece uma API que permite gerenciar notificações e repositórios programaticamente. Combinando isso com um script em shell, você pode desativar notificações para repositórios favoritos diretamente pela CLI.
Gere um token de acesso pessoal (PAT) no GitHub com as permissões necessárias:
repo
e notifications
.Use o script abaixo, substituindo <YOUR_GITHUB_TOKEN>
pelo token gerado.
UPDATE source_domains SET extra_data = REPLACE(extra_data::text, '\u0000', '')::jsonb WHERE extra_data::text LIKE '%\u0000%';
### meu banco estava em sqlite, migrei os dados para o postgres, pode ter ocorrido algum problema com a informação
### SQLSTATE[22P05]: Untranslatable character: 7 ERROR: unsupported Unicode escape sequence DETAIL: \u0000 cannot be converted to text. CONTEXT: JSON data, line 1: ...nk":"78297849","telephones":"ph:+61-4-10852\u0000... parallel worker (Connection: pgsql, SQL: select count(*) as aggregate from "source_domains" where ("extra_data"->>'techSpendUsd' = $5000) and "source_domains"."deleted_at" is null)
// DEV SET
// put on wp-config.php
$wpDev = function() {
return filter_var($_COOKIE['wp-dev'] ?? null, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) ?? false;
};
if (!defined('WP_DEBUG')) {
git checkout -B tmp; git branch -D develop; git fetch origin; git checkout develop; git checkout -b task/minha-branch |