tar cf - <files> -P | pv -s $(du -sb <files> | awk '{print $1}') | gzip > <some .tar.gz file>where:
- `` is the root-mounted (i.e. starts with /) path to the files
| #!/usr/bin/env python3 | |
| """ | |
| Script to convert requirements.txt to dependencies list for pyproject.toml for uv project | |
| Usage: | |
| Execute the script with: | |
| python3 requirementstxt_to_uv_pyprojecttoml.py path/to/requirements.txt |
First install all these prerequisites for compiling:
sudo apt install g++ autoconf libfontconfig1-dev pkg-config libjpeg-dev libopenjpeg-dev gnome-common libglib2.0-dev gtk-doc-tools libyelp-dev yelp-tools gobject-introspection libsecret-1-dev libnautilus-extension-dev
First download the encoding files (no need to compile these) to the current working directory
wget https://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz
| FROM ubuntu:18.04 | |
| # Install wget | |
| RUN apt-get update | |
| RUN apt-get install -y wget | |
| # Add 32-bit architecture | |
| RUN dpkg --add-architecture i386 | |
| RUN apt-get update |
| FROM ubuntu:20.04 | |
| USER root | |
| WORKDIR /root | |
| SHELL [ "/bin/bash", "-c" ] | |
| ARG PYTHON_VERSION_TAG=3.10.5 | |
| ARG LINK_PYTHON_TO_PYTHON3=1 |
| --- | |
| kind: pipeline | |
| type: docker | |
| name: linux-amd64 | |
| trigger: | |
| branch: | |
| - myapp | |
| event: |
This FastAPI application serves as an HTTP proxy, forwarding client requests to an upstream API server and relaying the server's response back to the client. It supports arbitrary paths and HTTP methods, providing a versatile proxy solution for various API interactions.
| # adapted from https://github.com/fastapi/fastapi/issues/1788 | |
| from fastapi import FastAPI | |
| from starlette.requests import Request | |
| from starlette.responses import StreamingResponse | |
| from starlette.background import BackgroundTask | |
| import uvicorn | |
| import httpx | |
| API_KEY = os.getenv('API_KEY') |
| 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 |