This will print out python code that you can use to use the same session in telethon.
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
# before run this script install required packages via command below | |
# pip3 install -U pytgcalls==3.0.0.dev24 | |
import asyncio | |
import pytgcalls | |
import telethon | |
# EDIT THIS | |
# more info about API keys here https://docs.telethon.dev/en/latest/basic/signing-in.html |
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
FROM scratch | |
# Metadata params | |
ARG BUILD_DATE | |
ARG VERSION | |
ARG TARBALL | |
ARG RELEASE_DESCRIPTION | |
# https://github.com/opencontainers/image-spec/blob/master/annotations.md | |
LABEL org.opencontainers.image.created=$BUILD_DATE \ |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
Assumptions
- You have termux installed and have sufficient permissions
- You have loggedin as root user
- You are okay with running Puppeteer inside a container (Alpine)
Gotchas
- There is no build of Google Chrome available for ARM at this moment, so using chromium instead.
- Installing chromium on Termux directly requires snap which is another big hurdle so alternively using alpine distro here.
Updated to Pyrogram v1.
If you know what you're doing, feel free to use these as a guide.
For any questions, head to @PyrogramLounge.
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
# Unicode Icons in Ranger File Manager | |
# | |
# How to install? | |
# https://gist.github.com/marcbelmont/c12d2fd2519a372d3b347f665b37e74a#gistcomment-3240106 | |
from __future__ import absolute_import, division, print_function | |
from itertools import repeat | |
import ranger.api |
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
NewerOlder