2023-10-20 14:31:16 +00:00
|
|
|
### docker
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ docker run -it syui/aios ai
|
|
|
|
$ docker run -it -d syui/aios zsh -c "ai login <handle> -p <password> && ai bot"
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ cp -rf ~/.config/ai ./.config/
|
|
|
|
|
|
|
|
$ docker compose up
|
|
|
|
```
|
|
|
|
|
|
|
|
### cron
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ sudo pacman -S fcron
|
|
|
|
$ fcrontab -e
|
|
|
|
* * * * * $HOME/bot/test/ai.zsh c
|
|
|
|
```
|
|
|
|
|
|
|
|
### ssh
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ ssh-keygen -f /.ssh/diffusers.key -t ed25519
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
FROM syui/aios
|
|
|
|
ADD .ssh /root/.ssh
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
Host diffusers
|
|
|
|
HostName localhost
|
|
|
|
User root
|
|
|
|
IdentityFile ~/.ssh/diffusers.key
|
|
|
|
StrictHostKeyChecking no
|
|
|
|
UserKnownHostsFile /dev/null
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
services:
|
|
|
|
aios:
|
|
|
|
#image: syui/aios
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./.config:/root/.config
|
|
|
|
command: ai bot -a syui.syu.is
|
|
|
|
```
|
2024-03-13 10:08:16 +00:00
|
|
|
|
|
|
|
### openapi
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# https://github.com/rdmurphy/atproto-openapi-types
|
|
|
|
$ curl -sLO https://raw.githubusercontent.com/rdmurphy/atproto-openapi-types/main/spec/api.json
|
|
|
|
```
|