Skip to content

CamiloGarciaLaRotta/gifhub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

activitygiffer

📈 Create GIFs from user's GitHub activity graph

🚧 WIP 🚧

Dependencies

How to use

You have 2 options:

  • Linux/OSX/Windows: Build and run a Docker container with the app. Requires Docker
  • Linux: Compile directly from source. Requires Golang and the 2 dependencies (ImageMagick, urfave/cli)

Regardless of how you choose to run the app, clone the repository

git clone https://github.com/CamiloGarciaLaRotta/activitygiffer.git
cd activitygiffer

Run via Docker

Build the image

docker build . -t activitygiffer

Create a directory of your choice to store the output GIF.
Run the container with the created directory mounted to /app/out

mkdir out
docker run \
  -it \
   --rm \
  -v $(pwd)/out:/app/out \
  activitygiffer -y 2016,2017,2018,2019 camilogarcialarotta

The application will generate a GIF named after the user inside ./out

Run directly in your machine

Install the binary and its dependencies

# install ImageMagick with the command for your distribution
sudo dnf install ImageMagick          # Fedora
sudo apt-get install imagemagick      # Debian
sudo pacman -S imagemagick            # Arch Linux
sudo emerge -av media-gfx/imagemagick # Gentoo

# install urfave/cli and activitygiffer
go install ./...

Run the CLI with a GitHub handle

activitygiffer -y 2016,2018,2019 camilogarcialarotta

The application will generate a GIF named after the user inside ./out