Tutorial and tips for GitHub Actions workflows
| """An example of a cache decorator.""" | |
| import json | |
| from functools import wraps | |
| from redis import StrictRedis | |
| redis = StrictRedis() | |
| def cached(func): |
| #!/usr/bin/awk -f | |
| # This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
| # My copy here is written in awk instead of C, has no compelling benefit. | |
| # Public domain. @thingskatedid | |
| # Run as awk -v x=xyz ... or env variables for stuff? | |
| # Assumptions: the data is evenly spaced along the x-axis | |
| # TODO: moving average |
map(select(.|length > 9))with_entries(.value |= .ip)| # Puedes ver una versión más avanzada de este bot en https://github.com/nukeador/chatgpt-tegram-bot | |
| # Requisitos: | |
| # 1. Tener una cuenta de Telegram y haber creado un bot de Telegram utilizando el BotFather. | |
| # 2. Tener una cuenta de OpenAI y haber obtenido una clave de acceso a la API de ChatGPT. | |
| # 3. Tener instalado Python 3 en el sistema. | |
| # 4. Instalar los módulos de python `pyTelegramBotAPI` y `openai` utilizando pip. | |
| # 5. Configurar el token del bot de Telegram y la clave de acceso a la API de ChatGPT en el script. | |
| # 6. Ejecutar el script utilizando una conexión a Internet activa. |
| import openai # pip install openai | |
| import typer # pip install "typer[all]" | |
| from rich import print # pip install rich | |
| from rich.table import Table | |
| """ | |
| Webs de interés: | |
| - Módulo OpenAI: https://github.com/openai/openai-python | |
| - Documentación API ChatGPT: https://platform.openai.com/docs/api-reference/chat | |
| - Typer: https://typer.tiangolo.com |
This tutorial will teach you how to set up a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail, although you can use any other Linux distribution and cloud provider.
Using a Telegram proxy is a safe, easy and effective way of overcoming Telegram bans. It's useful, for example, to keep using Telegram under tyrannical regimes, or to circumvent judges' decisions to block Telegram.
Telegram proxies are a built-in feature in all Telegram apps (both mobile and desktop). It allows Telegram users to connect to a proxy in just one or two clicks / taps.
Telegram proxies are safe: Telegram sends messages using their own MTProto secure protocol, and the proxy can only see encrypted traffic – there's no way for a proxy to decrypt the traffic and read the messages. The proxy does not even know which Telegram users are using the proxy, all the proxy sees is just a list of IPs.