Giter Site home page Giter Site logo

howtf's Introduction

howtf

quickly look up console commands using the GPT API


Synopsis

This is a pretty simple CLI to help you find that command you can never remember using the OpenAI chat completion API with either gpt-3.5-turbo or gpt-4. Usually faster than googling it.

Also comes with the neat advantage of being personalized to whatever you need. Notice how in the example above, I specifically asked to modify "Video.mov" and it automatically generated Video_stretched.mov as the output file.

Installation

Install using npm (Node.js required):

npm i -g howtf

Unless youd ou'll be prompted to enter a OpenAI API key. You can generate one here.

Usage

howtf [command]

Save your OpenAI API key so you don't have to enter it every time:

howtf -K [your API key]
# you can either pass it as an argument or enter it interactively

Examples

howtf convert input.mp4 to gif with ffmpeg
# ❯ ffmpeg -i input.mp4 output.gif
howtf undo last 3 commits
# ❯ git reset HEAD~3 --hard

Options

Option Description
--help, -h print help
--version, -v print version
--model, -m use model (gpt-3.5-turbo or gpt-4, you can also just pass 3 or 4)
--set-model, -M set model and save to config
--key, -k pass OpenAI API key once
--set-key, -K set OpenAI API key
--config, -c print config file location
--clear, -C clear config file

howtf's People

Contributors

vaaski avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

snoilt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.