Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair localhost:port
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
# This code adds custom REST api handler at runtime to a running Streamlit app | |
# | |
from tornado.web import Application, RequestHandler | |
from tornado.routing import Rule, PathMatches | |
import gc | |
import streamlit as st | |
@st.cache_resource() |
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |
Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair localhost:port
# resolves : Is there a way to delete or hide old/renamed Workflows? #26256 | |
# https://github.com/community/community/discussions/26256 | |
from multiprocessing.dummy import Pool as ThreadPool | |
import requests | |
TOKEN = "{YOUR_GH_TOKEN}" | |
OWNER_REPO = "esc5221/example_repo" | |
DELETE_TARGET_RUN_NAME = "{RUN NAME}" |
from PIL import Image | |
import io | |
import pasteboard | |
pb = pasteboard.Pasteboard() | |
pb_image = pb.get_contents(pasteboard.TIFF) | |
if pb_image: | |
image = Image.open(io.BytesIO(pb_image)) | |
if image.mode == 'RGBA': | |
image.load() |
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.
from PIL import Image, ImageFont, ImageDraw | |
from collections import namedtuple | |
def position_tuple(*args): | |
Position = namedtuple('Position', ['top', 'right', 'bottom', 'left']) | |
if len(args) == 0: | |
return Position(0, 0, 0, 0) | |
elif len(args) == 1: | |
return Position(args[0], args[0], args[0], args[0]) |