| 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 |
| import typing | |
| import strawberry | |
| import uvicorn | |
| from dependency_injector import containers, providers | |
| from dependency_injector.wiring import Provide, inject | |
| from fastapi import FastAPI | |
| from strawberry.extensions import FieldExtension | |
| from strawberry.fastapi import GraphQLRouter | |
| from strawberry.field import StrawberryField |
| use serde::ser::SerializeMap; | |
| use serde::{Serialize, Serializer, de::Visitor, de::MapAccess, Deserialize, Deserializer}; | |
| use std::fmt; | |
| #[derive(Debug)] | |
| struct Custom(String, u32); | |
| impl Serialize for Custom { | |
| fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> | |
| where |
| #!/usr/bin/env python3 | |
| import asyncio | |
| import time | |
| import aiohttp | |
| START = time.monotonic() |
Setting up a remote interpreter on PyCharm is awfully unintuitive. I've pared it down to what I think is the minimal number of steps, and leaves the fewest number of deployment configurations and Python interpreters lying around. This is designed for my specific configuration (specifically PyTorch); adapt as needed.
- (Optional) Add virtual environment path to excluded files
- From Welcome Page, go to Configure > Settings > Build, Execution, Deployment > Deployment > Options
- Add virtualenv path. For example, if you always have the project's virtualenv in
.env, add ";.env" to the "Exclude items by name" field
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
| #!/bin/bash | |
| # | |
| # CloudyGamerLauncher by Larry Gadea | |
| # Easily start/stop Paperspace and Parsec instances | |
| # | |
| # Make sure to fill out the variables below. For the machine id, use the | |
| # 8-letter identifier for the machine on Paperspace (ex. PS8RGDUY) | |
| # | |
| # Note: Requires Paperspace API key (generate one in account settings) |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
