If you have uv installed (and you should!), you can install llm globally in a uv-managed tool environment with:
uv tool install llmIf you want to use models other than OpenAI models, you'll need some extensions:
| 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 |
Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:
project-root/
├── cmd/
│ ├── your-app-name/
│ │ ├── main.go # Application entry point
│ │ └── ... # Other application-specific files| import typing as t | |
| from fastapi import Depends, FastAPI, Header, HTTPException | |
| from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBearer | |
| from pydantic import BaseModel | |
| from starlette import status | |
| app = FastAPI() | |
| # Placeholder for a database containing valid token values |
| # Note for Cloudshell, only stuff in your home directory is saved. | |
| # But, Cloudshell already has git and zsh available. So we just install custom binaries to ~/bin and update our path. | |
| # you can whoami == cloudshell-user or $AWS_EXECUTION_ENV==CloudShell to detect cloudshell | |
| # Start zsh on startup. No chsh :( | |
| [[ $AWS_EXECUTION_ENV == "CloudShell" ]] && echo "In CloudShell, no need to install git/zsh" || sudo yum -y install git zsh && echo zsh >> ~/.bashrc | |
| # Install oh-my-zsh | |
| sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
| #!/usr/bin/env python3 | |
| # Currently works for 0.12.x | |
| # | |
| # TODO: | |
| # - use json output instead of stdout | |
| # | |
| # Usage: | |
| # terraform plan > plan.out | |
| # python terraform-import-statement-guesser.py plan.out | |
| import sys |
Syncthing: https://syncthing.net/
Syncthing is a free, open-source peer-to-peer file synchronization application available for Windows, Mac, Linux, Android, Solaris, Darwin, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into the design of the software.
This is written using Linux Mint 21.2 x86_64 using kernel 5.15.0-89-generic.
I couldn't find good directions for doing this, so here we go.
| #!/usr/bin/env bash | |
| # ensure we were given two command line arguments | |
| if [[ $# -ne 2 ]]; then | |
| echo 'usage: vault-cp SOURCE DEST' >&2 | |
| exit 1 | |
| fi | |
| source=$1 | |
| dest=$2 |