- criar partições
- montar partições
- instalar sistema
- configurar hora
- configurar rede
- configurar localização
- configurar usuario e sudo
- configurar grub
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
# https://developers.google.com/identity/protocols/OAuth2ServiceAccount | |
key_json = File.read!("some-service-account-key-file.json") | |
key_map = JOSE.decode(key_json) | |
jwk = JOSE.JWK.from_pem(key_map["private_key"]) | |
jws = %{"alg" => "RS256"} | |
header = %{ |
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
# SELECT company, | |
# GREATEST(similarity(company.sourced_name, 'search term'), similarity(company.local_name, 'search term'), similarity(company.name, 'search term')) AS rank | |
# FROM "companies" company | |
# WHERE (similarity(company.sourced_name, 'search term') > 0.1::float) OR | |
# (similarity(company.local_name, 'search term') > 0.1::float) OR | |
# (similarity(company.name, 'search term') > 0.1::float) | |
# ORDER BY rank DESC | |
# LIMIT 5; | |
defmodule Company do |
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
defmodule Ecto.Polymorphic do | |
defmacro __using__(_) do | |
quote do | |
require Ecto.Schema | |
import Ecto.Schema, except: [belongs_to: 2, belongs_to: 3] | |
import unquote(__MODULE__) | |
end | |
end |
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
rem Digite o numero e have fun | |
rem Nao suporta string nem floats então para de causar ae. | |
rem Fico imaginando o que foi o trabalho de vida de várias pessoas. | |
rem o cara que inventou a matemática booleana, depois teve os avanços no eletromagnetismo, as construções de maquinas analogicas e então digitais | |
rem anos de cooperação entre cientistas para criar os computadores, e linguagens de programação | |
rem fruto do trabalho conjunto da humanidade durante todo esse tempo | |
rem para chegar alguem e fazer um programa desses | |
@echo off |
Dockerfile contents in the image located at : https://hub.docker.com/layers/jdecode/php8.0rc2/1/images/sha256-f732b4df8f6021e6c0dada4d31d0444d916ffe204da597d81f24f443ebced6d1?context=explore
The above link takes you directly to tag "1", and the image's generic URL is: https://hub.docker.com/r/jdecode/php8.0rc2
#PHP 8.x RC2!
FROM php:8.0.0RC2-apache
#Update!
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
defmodule HTTPServer do | |
@moduledoc """ | |
Este módulo é responsável por estabelecer uma conexão de servidor TCP | |
para suportar requisições HTTP. | |
Função principal: `start/1` | |
""" | |
defmodule Conn do | |
@moduledoc """ |