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
# Franco Gil | |
# @realFranco | |
# April 5th, 2022 | |
class Utils: | |
@staticmethod | |
def noBlockCoroutine(coroutine): | |
try: | |
# Wrap the coro coroutine into a Task and schedule its execution. |
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
/* 11*10*17 | |
- TDA arboles | |
31*05*21 | |
- This is a recovery file, expose a preview on binary trees data structures. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> |
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
""" | |
Github @realFranco | |
Testing OAuth1a | |
""" | |
def test_compose_oauth1a_signature() -> None: | |
""" | |
Reference: https://oauth.net/core/1.0/#sig_base_example |
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
""" | |
Github: @realFranco | |
References: | |
- https://oauth.net/core/1.0/ | |
- steps: | |
- normalize request parameters | |
- create sign key |
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
""" | |
Write a function that perform as an SQL-join. | |
""" | |
BRAND = [ | |
{'id': 0, 'name': 'Ferrari', 'year': 1998}, | |
{'id': 1, 'name': 'Red Bull'}, | |
{'id': 2, 'name': 'Mclaren'} |
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
8 | |
1 | |
4 9 5 2 6 7 8 1 8 | |
1 3 0 0 | |
0 0 1 1 3 | |
2 6 0 0 1 7 | |
2 6 1 0 1 7 1 1 3 4 | |
0 1 2 3 4 5 6 | |
0 1 2 0 1 6 |
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
# Motivation: As the "/var" partition (Linux Debian) could have a limited size | |
# and "docker" by default set volumes and images inside of "/var/lib" the partition | |
# could run out ouf space soon. | |
# | |
# My approach is to modify the "data-root" argument from the docker daemon, and move | |
# all the data into a partition with more free space ("home" in my case). | |
> docker version | |
Client: |
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
> docker version | |
# mi versión de docker compose actual no me permite ejecutar compose > 3.7 | |
> docker-compose -v | |
# docker-compose version 1.25.0, build unknown | |
> which docker-compose | |
# /usr/bin/docker-compose | |
# backup the old docker-compose |
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
mkdir -p ~/.docker/cli-plugins | |
curl -sSL https://github.com/docker/compose/releases/download/v2.11.0/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose | |
chmod +x ~/.docker/cli-plugins/docker-compose | |
docker compose version | |
# Docker Compose version v2.11.0 | |
# This will let you run docker compose in the new form `docker compose .f compose.yaml up` |
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
""" | |
This code doesn't belongs to @realFranco. | |
See: https://stackoverflow.com/questions/72253062/write-unit-tests-for-python-lambda-using-botocore-stub-stubber | |
""" | |
import json | |
import boto3 | |