commandline

1874 readers
1 users here now

founded 2 years ago
MODERATORS
76
 
 

Despite the pithy title, this is a unique and educational perspective about creative things you can do with bash.

77
 
 

cross-posted from: https://lemmy.world/post/1027203

cross-posted from: https://lemmy.world/post/961924

A script in bash in combination with a script in C can help you solve a sudoku puzzle in a png file.

https://gitlab.com/christosangel/sudoku-solver-ocr

You can see the script in action in this video.

The main dependency is tesseract OCR, responsible for the oprical character recognition.

Another important dependency is imagemagick, responsible for the necessary image manipulation.

The file selection of the png image is done with zenity.

Feel free to give your feedback.

78
65
submitted 2 years ago* (last edited 11 months ago) by [email protected] to c/commandline
 
 

cross-posted from: https://lemmy.world/post/530920

Magic-tape is an image supporting fuzzy finder command line interface YouTube client.

https://gitlab.com/christosangel/magic-tape

Image rendering can be done with the use of ueberzugpp, ueberzug, kitty terminal or chafa.

With magic-tape, through the main menu, the user can:

  • Browse videos from subscriptions.

  • Browse through trending video feed.

  • make a video search, using keywords or phrases.

  • Watch a previously watched video (watch history).

  • Browse videos from a subcsribed channel.

  • Watch a liked video.

  • Repeat the previous selection.

  • Repeat a previous search (search history).

  • Watch/download video/audio content, in various formats.

Through the miscellaneous menu the user can

  • Set up Preferences (configuration).

  • Like / Unlike a video.

  • Synchronize the above actions with their YouTube account.

  • Import subscriptions from YouTube.

  • Subscribe to/ Unsubscribe from a channel.

  • Clear their watch/search history, liked videos, thumbnail cache.

spoiler


79
 
 

Hello Lemmy,

InvidTUI is a cross-platform Invidious client, which can:

  • Play/download audio and video
  • Search and view videos, playlists and channels, with comments and history support
  • Manage your track queue, and view track information with image
  • Save queue into a playlist M3U8 file, or open/edit existing playlist files
  • Authenticate with the selected instance, display user feeds, create/edit playlists and manage subscriptions.

To facilitate the user experience, it also has a menu bar, to display menu options and their keybindings.

Any feedback is appreciated.

80
81
17
Vim Best Practices For IDE Users (betterprogramming.pub)
submitted 2 years ago by RandomDevOpsDude to c/commandline
82
 
 
83
 
 

Any extra tips or tricks are welcome!

Yesterday I learned that set -x enables trace for a bash, sh, or zsh script and prints the trace to the terminal.