Skip to content

Instantly share code, notes, and snippets.

View notudope's full-sized avatar
🎯
Core Dev

notudope notudope

🎯
Core Dev
View GitHub Profile
@painor
painor / README.MD
Last active September 13, 2024 09:10
import GramJS session into Telethon

Import GramJS session into Telethon

Requirements

GramJS version 2.X+

Telethon version 1.X+

This will print out python code that you can use to use the same session in telethon.

@MarshalX
MarshalX / 1_pytgcalls_video_telethon_example.py
Last active August 22, 2024 20:39
Example of the most simple way to stream any video to Telegram Live Stream (Group Call) with https://github.com/MarshalX/tgcalls
# 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
@FreddieOliveira
FreddieOliveira / Dockerfile
Last active January 27, 2023 07:47
Steps to build an ARM Kali Linux docker image from within Termux app in Android.
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 \
@FreddieOliveira
FreddieOliveira / docker.md
Last active November 4, 2024 08:28
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

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.


Summary

@rishabhrpg
rishabhrpg / puppeteer_on_termux.md
Last active October 7, 2024 13:00
Run puppeteer inside termux

Run Puppeteer inside termux

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.
@CustomIcon
CustomIcon / 1.md
Last active July 23, 2023 17:52 — forked from ColinShark/1.md
start(), idle() and stop() multiple Pyrogram Clients at once.

UPDATED

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.

@marcbelmont
marcbelmont / unicode_icons.py
Last active July 8, 2023 18:31
Add Unicode Icons to Ranger File Manager (see first comment for details). 🖼️ 📂 🎵 🥳
# 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
@bmaupin
bmaupin / free-database-hosting.md
Last active November 4, 2024 10:03
Free database hosting
@npearce
npearce / install-docker.md
Last active October 27, 2024 07:37
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

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/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start