this post was submitted on 08 Feb 2024
139 points (93.7% liked)

Linux

48200 readers
1713 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I made this as a challenge to learn golang. If you ever wanted to make memes without having to use those pesky GUI tools, there you go! The only dependency is lmageMagick and the windows version comes batteries-included.

top 21 comments
sorted by: hot top controversial new old
[–] [email protected] 23 points 9 months ago (2 children)

Now to just have another tool that randomly selects a template and one which randomly generates a phrase. Run it 200 times and send the best ones to your friends

[–] [email protected] 14 points 9 months ago (2 children)

you can write a shell script for that

[–] [email protected] 6 points 9 months ago

Piping is the real superpower of CLI.

[–] [email protected] 1 points 9 months ago

The beauty of the shell script world. The application they mentioned already exists now, and array of additional ones.

[–] [email protected] 11 points 9 months ago

you mean send ALL of them to everyone

[–] [email protected] 20 points 9 months ago (1 children)

Nice creation. I'd recommend packaging the Linux version as tgz instead of zip, as it's a default compression on Linux systems and will always store the executable flag. Plus that makes it compatible with Github Application Managers like gam.

[–] [email protected] 3 points 9 months ago (1 children)

i think the .tar.gz extension is more common than .tgz

[–] [email protected] 1 points 9 months ago

More common, but.. more better? Some HTML libraries still improperly rename tar.gz files when they pre-exist, and it's more characters to type.

[–] [email protected] 15 points 9 months ago (1 children)

Nice, but it really only expands the image at the top and puts text above, rather than doing the classic Top Text / Bottom Text over the image.

[–] [email protected] 17 points 9 months ago (1 children)

It can be done, but the goal of this app was to reproduce the classic top caption memes in a single command. I might add more features like the one you're talking about.

[–] [email protected] 9 points 9 months ago (1 children)
[–] [email protected] 2 points 9 months ago (1 children)

I actually ended up adding it today

[–] [email protected] 1 points 9 months ago
[–] [email protected] 13 points 9 months ago* (last edited 9 months ago) (1 children)

Thanks OP! This seems helpful but it also seems you would need to have a folder with a bunch of templates in it already.

Does anyone know a place where I could download a ton of templates all at once?

EDIT: I was able to grab about 60 or so images, manually. They're very low res though - like 250x200px - but something to play around with.

https://filetransfer.io/data-package/y089cuJF#link

[–] [email protected] 5 points 9 months ago (1 children)

I actually wanted to add a template command to fetch some templates, I'm not sure if there's a good source though.

[–] [email protected] 1 points 9 months ago

If there were simple web LLM picture gens you can fetch or run locally without too much of a hustle, it could've been nice to pass them a prompt and use the result as a template with an option to save it separately for next memes.

[–] [email protected] 8 points 9 months ago

God damn it

[–] [email protected] 6 points 9 months ago

Hey, I’m learning Golang too! I’m gonna check this out. Really cool idea.

[–] [email protected] 3 points 9 months ago

Cool and practical!

[–] [email protected] 2 points 9 months ago

Nice! I’ve found this useful btw https://github.com/golang-standards/project-layout

Not mandatory but I found it helpful

[–] [email protected] 2 points 9 months ago

That's nice, always wanted to have some cli tool for making memes. Features I'd like

  • Write the text on top of the image, not above it (already asked by others)
  • add a third parameter to be able to add a bottom caption
  • maybe it would be cool to ship with assets of the most known meme templates, either baked in or just as an additional folder, or maybe an online api, lol.