• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 13 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Two-caption meme generator CLI

memegen

An RMagick-based two-caption meme generator.

Profit

Install

You'll need ImageMagick and ghostscript installed. The easiest way is to use Homebrew.

brew install ghostscript
brew install --build-from-source imagemagick

Then install the gem!

gem install memegen

Usage

To see a list of available images:

$ memegen --list
a_dog
p_obama
...

To generate an image:

$ memegen a_dog "Eat Crayons" "Poop Rainbows"
/tmp/meme-1234567890.jpg
$

You only have to supply one piece of text:

$ memegen a_dog "" "AWESOME"
/tmp/meme-1234567890.jpg
$

You can also use URLs for one time use memes:

$ memegen http://example.com/stupid.jpg "Generated" "From a URL"
/tmp/meme-1234567890.jpg
$

Adding your own images

You can add images to your local ~/.memegen folder:

$ ls ~/.memegen
my_custom_image.png

Upload to Campfire

If you have a Campfire account and token, you can automatically upload your image:

$ memegen a_dog "Hello" "Campfire world" --campfire

It will prompt you for your subdomain, token, and room name the first time.

Upload to GroupMe

If you have a GroupMe account and token, you can automatically upload your image:

$ memegen a_dog "Hello" "GroupMe world" --groupme

It will prompt you for your phone number, password, and group id the first time. (your password will NOT be stored in plain text).

Bash completion

Source or copy script/autocomplete.sh inside ~/.bashrc to get image name autocompletion.

See also:

memegen --install-autocomplete

Contribute

Pull requests welcome!

More Repositories

1

holt_winters

Holt-Winters Triple Exponential Smoothing Algorithm
C
67
star
2

bitmap-counter

A unique id counter implemented with redis bitmaps. Count the unique users across a date range.
Ruby
19
star
3

foursquare

Ruby API for Foursquare (playfoursquare.com)
Ruby
17
star
4

aws4

A ruby gem for AWS Signature version 4
Ruby
11
star
5

strip_and_validate

Strip whitespace and validate ruby syntax when you save in TextMate
6
star
6

load_average

Mimic the UNIX load average algorithm, but in ruby, or something
Ruby
4
star
7

booking

Web application for booking our apartment
Go
3
star
8

memegen-database

Central Memegen Image Repository
3
star
9

awesome-jerm

Jerm is Awesome
Ruby
2
star
10

dsql

SQL dialect for DynamoDB
Go
2
star
11

cmdrkeene

My personal site
Ruby
2
star
12

nakajimadawn

Pat Nakajima, Midnight to 6am
2
star
13

capistrano-rails-example

A demonstration capistrano-deployed Rails application
Ruby
2
star
14

latency-notifier

Tweets and growls when latency or packet loss exceed thresholds
2
star
15

rails-skeleton

My default Rails 2.3.5 skeleton: PostgreSQL, RSpec, Cucumber, Capybara, HAML
Ruby
2
star
16

has-magic-columns

Extends ActiveRecord models and adds "magic" columns and attributes to a model. Model classes or instances can maintain completely unique and separate data and are able to access this data through the standard ActiveRecord style interface.
2
star
17

named_scope_error

A simple Rails project to demonstrate how named_scope :public breaks stubbing in RSpec
Ruby
1
star
18

masterkeeper_example_with_rspec

Tracking repository for example_with_rspec
1
star
19

go-test-patterns

Test Patterns in Go - NYC Golang Meetup, November 5th, 2013
Go
1
star
20

failuresort

Sort RSpec files by number of failures on CI
1
star
21

tweetlog

Log messages to Twitter
1
star
22

rails-jruby-heroku

Run Rails 3.1.1 with JRuby 1.6.3 on Heroku cedar
Ruby
1
star
23

example_with_rspec

An example Rails app with RSpec
Ruby
1
star
24

weekday_calculator

Constant time nth-weekday calculation and every nth weekday calculation
Ruby
1
star