Skip to content

Instantly share code, notes, and snippets.

View thewasta's full-sized avatar
🏠
Working from home

Schenier Lopez thewasta

🏠
Working from home
View GitHub Profile
@painor
painor / FastTelethon.py
Last active August 9, 2026 17:18
This will increase the download/upload speed when using telethon
# copied from https://github.com/tulir/mautrix-telegram/blob/master/mautrix_telegram/util/parallel_file_transfer.py
# Copyright (C) 2021 Tulir Asokan
import asyncio
import hashlib
import inspect
import logging
import math
import os
from collections import defaultdict
from typing import Optional, List, AsyncGenerator, Union, Awaitable, DefaultDict, Tuple, BinaryIO
@thewasta
thewasta / Function Select From DB
Last active December 10, 2018 00:27
Select from DB with a condicional WHERE
<?php
/**
* Created by Schenier Aldair Lopez
* Date: 06/12/18
* Time: 0:53
*
*/
function select($tabla,$datos=null, $item=null){