itag Code | Container | Content | Resolution | Bitrate | Range | VR / 3D |
---|---|---|---|---|---|---|
5 | flv | audio/video | 240p | - | - | - |
6 | flv | audio/video | 270p | - | - | - |
17 | 3gp | audio/video | 144p | - | - | - |
18 | mp4 | audio/video | 360p | - | - | - |
22 | mp4 | audio/video | 720p | - | - | - |
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
git clone https://github.com/OpenDevin/OpenDevin.git | |
cd OpenDevin | |
conda create -n od python=3.10 | |
conda activate od | |
docker ps | |
(optional) install docker if not already installed | |
docker pull ghcr.io/opendevin/sandbox | |
export OPENAI_API_KEY={your key} | |
(optional I had to install rust) curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs/) | sh | |
(optional) restart terminal |
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
import mysql.connector | |
try: | |
connection = mysql.connector.connect(host='foo.bar.com.br', database='foobar', user='foo', password='foobar2020') | |
# The string that you want to search. | |
seeked_value = "%8439742464%" # Like syntax | |
if connection.is_connected(): | |
db_Info = connection.get_server_info() |
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
import uuid | |
import hashlib | |
def hash_password(password): | |
# uuid is used to generate a random number | |
salt = uuid.uuid4().hex | |
return hashlib.sha256(salt.encode() + password.encode()).hexdigest() + ':' + salt | |
def check_password(hashed_password, user_password): | |
password, salt = hashed_password.split(':') |
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
#testa colisão em um eixo e retorna verdadeiro ou falso | |
def test_colli(a, b, c, d): | |
if (a >= c and a <= d) or (b >= c and b <= d): | |
return True | |
return False | |
#posição x e y do canto esquerdo do retangulo | |
posX = input () | |
posY = input () |
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
mod = 100 | |
def my_hash(num): | |
return num % mod | |
keys = [ [] for i in range(mod) ] | |
values = [ [] for i in range(mod) ] | |
def set(key, value): | |
keys[my_hash(key)].append(key) |
Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.
To pass AWS certification, you should have:
- Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
- Hands on experience with AWS services.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#Algunas funciones fueron obtenidas de la siguiente URL: http://blog.hackxcrack.es/2011/11/introduccion-la-criptografia-moderna_09.html | |
import hashlib | |
import random | |
def hacerentero(s): #Se utiliza una funcion para hacer el mensaje a enteros | |
n = 0 | |
for c in s: | |
n <<= 8 #evaluando los digitos ingresados por el usuario | |
n += ord(c) #se obtiene el orden de c |
NewerOlder