- Purpose: The backend bucket is where your static files (e.g., images, CSS, etc.) are stored.
- Command:
gcloud compute backend-buckets create origin-cdn-store \ --gcs-bucket-name=your-gcs-bucket-name
- What it does: This creates a backend bucket named
origin-cdn-store
, which is linked to a Google Cloud Storage (GCS) bucket where your content is hosted.
Source: https://valchan.com.br/wsl2-kind-kubectl/
Você pode verificar a release aqui: Github kubernetes-sigs/kind
Para x86_64
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.19.0/kind-linux-amd64
Para ARM64
This file contains hidden or 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
version: "3.4" | |
volumes: | |
my_postgres: | |
services: | |
postgres: | |
container_name: my_postgres | |
image: postgres:12.0-alpine | |
restart: always | |
environment: | |
- POSTGRES_USER=postgres |
This file contains hidden or 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
defmodule MagicNumber do | |
def extract_magic_number(<<byte :: size(32), _rest :: binary>>) do | |
Integer.to_string(byte, 16) | |
|> String.split(~r/.{2}/, include_captures: true, trim: true) | |
|> Enum.map(fn n -> "0x#{n}" end) | |
end | |
end | |
# Usage: | |
content = File.read!(path) |
This file contains hidden or 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
defmodule ImapExample do | |
def mark_unread_emails_as_read(server, username, password) do | |
{:ok, conn} = ExImap.connect(server: server, ssl: true) | |
{:ok, _} = ExImap.authenticate(conn, username: username, password: password) | |
{:ok, _} = ExImap.select(conn, "INBOX") | |
{:ok, messages} = ExImap.search(conn, "UNSEEN") | |
Enum.each(messages, fn msg_id -> | |
{:ok, _} = ExImap.store(conn, msg_id, "+FLAGS", "\\Seen") | |
end) |
This file contains hidden or 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
defmodule Solution do | |
def remove_duplicate_chars(string) do | |
string | |
|> String.codepoints() | |
|> Enum.reduce(fn char, acc -> | |
acc = if String.contains?(acc, char) do | |
acc | |
else | |
acc <> char | |
end |
This file contains hidden or 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 | |
interface Entity { | |
} | |
class Book implements Entity { | |
} | |
// REPO | |
interface Repository { |
This file contains hidden or 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"sync" | |
"threadsync/httpclient" | |
"time" | |
) |
NewerOlder