paint-brush
9 Fun Command-Line Tools to Make Your Life Easierby@nicolasrusso
481 reads
481 reads

9 Fun Command-Line Tools to Make Your Life Easier

by Nicolas RussoMay 13th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Deep Daze is a command-line tool that zooms you into the future using images from text. It uses OpenAI’s CLIP image re-ranking model and Siren.com images. Peco is a simple interactive filtration/search tool for the command line. Pyp is a quick way to run Python commands in the shell. Exa is a modern alternative to ls List files in a beautiful way to list files. With ack ack, you can search a directory of source code files for text inside the code.

Company Mentioned

Mention Thumbnail
featured image - 9 Fun Command-Line Tools to Make Your Life Easier
Nicolas Russo HackerNoon profile picture

Photo by Christian Perner on Unsplash

1. StarCLI

This head honcho is a wonderful source for finding new cool things people are building every day.

Function: Discover trending Github projects, filter by language, time (day, week, month), topic, and more.

2. Deep Daze

This command-line tool zooms you into the future

Function: Generate images from text.

It uses OpenAI’s CLIP image re-ranking model and Siren.

While it is not as impressive as OpenAI’s DALL-E, it can be fun to play with.

Often times you get the impression or essence of what you want rather than a precise version of it.

After you install it with:

pip install deep-daze

All you have to do is:

imagine "a potato dreaming on the beach"

And you can get even better results with:

imagine "a potato dreaming on the beach" --deeper

If you’ve got more power, you can increase layers for better results:

imagine "stranger in strange lands" --num-layers 32

Limitations: This one can be slow depending on how powerful your computer is.

Currently there are several projects trying to replicate DALL-E, here’s another one.

3. Rebound

Function: Fetch Stack Overflow results whenever an exception is thrown.

Limitations: Python only

4. Exa

Function: A modern alternative to ls. List files in a beautiful way:

5. Peco


Function: Simple interactive filtration/search tool for the command line.

If like me you’ve ever been frustrated that the command line does not have some sort of auto-complete or fuzzy match, Peco is the answer.

Function: Highlight differences in code

As the creator Jeff points out, your terminal can display color but a lot of diff tools don’t use it. icdiff highlights those differences.

Limitations: only available on Mac/Linux.

7. ack

Function: With ack, you can search a directory of source code files for text inside the code, from inside the terminal, and get pretty formatted code segments in your terminal.

It’s:

1. Conveniently easy

2. Fast

Instead of typing:

$ grep pattern $(find . -type f | grep -v '\.git')

You can type:

$ ack pattern

Here’s a lightning talk from Cameron Pope on why you should use it.

You can install it here.

8. Theme.sh

Function: Interactive theme selection for the terminal.

9. Pyp

Function: Run Python commands in the shell.

This can be handy if you want to do something quick in the terminal that integrates Python.

For example, here’s a line that gets the file formats in a directory and sorts them by most common:

ls | pyp ‘Path(x).suffix’ | pyp ‘Counter([line for line in lines if line != “”]).most_common()’

Result:

(‘.wav’, 9)

(‘.py’, 4)

(‘.mp3’, 1)

(‘.zip’, 1)

Resources

All the choices above in a glance:

StarCLI

Deep daze

Rebound

Exa

Peco

icdiff

ack

Theme.sh

Pyp