https://github.com/eiz/chatgpt2py
step aside, curl | bash.
https://github.com/eiz/chatgpt2py
Last synced: over 1 year ago
JSON representation
step aside, curl | bash.
- Host: GitHub
- URL: https://github.com/eiz/chatgpt2py
- Owner: eiz
- License: mit
- Created: 2023-03-03T14:01:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T16:01:16.000Z (over 3 years ago)
- Last Synced: 2025-02-14T18:18:59.599Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
my contribution to the ChatGPT craze.
Install:
```
cargo install chatgpt2py
```
Put your OpenAI API key in a text file called `~/.openai`
Usage:
```
eiz@eiz13k:~$ gpt print all the sysctls from /proc/sys | python
['abi', 'debug', 'dev', 'fs', 'fscache', 'kernel', 'net', 'sunrpc', 'user', 'vm']
eiz@eiz13k:~$ gpt print all the sysctls from /proc/sys, recursively | python
/proc/sys/abi/vsyscall32
/proc/sys/debug/exception-trace
/proc/sys/debug/kprobes-optimization
/proc/sys/dev/raid/speed_limit_max
/proc/sys/dev/raid/speed_limit_min
/proc/sys/dev/scsi/logging_level
/proc/sys/dev/tty/ldisc_autoload
/proc/sys/fs/aio-max-nr
/proc/sys/fs/aio-nr
...
eiz@eiz13k:~/chatgpt2py$ gpt print the first 10 prime numbers | python
2
3
5
7
11
13
17
19
23
29
eiz@eiz13k:~$ gpt automate updating an ubuntu system | python
[sudo] password for eiz:
```