lolcommits-mpv 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +13 -0
  4. data/.travis.yml +33 -0
  5. data/CHANGELOG +140 -0
  6. data/CONTRIBUTING +11 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE +165 -0
  9. data/NOTES +17 -0
  10. data/README.md +100 -0
  11. data/Rakefile +77 -0
  12. data/bin/lolcommits +456 -0
  13. data/config/cucumber.yml +2 -0
  14. data/features/bugs.feature +58 -0
  15. data/features/lolcommits.feature +251 -0
  16. data/features/plugins.feature +37 -0
  17. data/features/step_definitions/lolcommits_steps.rb +123 -0
  18. data/features/support/env.rb +78 -0
  19. data/features/support/path_helpers.rb +39 -0
  20. data/lib/core_ext/class.rb +7 -0
  21. data/lib/lolcommits.rb +33 -0
  22. data/lib/lolcommits/capture_cygwin.rb +20 -0
  23. data/lib/lolcommits/capture_fake.rb +10 -0
  24. data/lib/lolcommits/capture_linux.rb +36 -0
  25. data/lib/lolcommits/capture_mac.rb +19 -0
  26. data/lib/lolcommits/capture_mac_animated.rb +71 -0
  27. data/lib/lolcommits/capture_windows.rb +20 -0
  28. data/lib/lolcommits/capturer.rb +14 -0
  29. data/lib/lolcommits/configuration.rb +210 -0
  30. data/lib/lolcommits/git_info.rb +31 -0
  31. data/lib/lolcommits/plugin.rb +83 -0
  32. data/lib/lolcommits/plugins/dot_com.rb +42 -0
  33. data/lib/lolcommits/plugins/lol_twitter.rb +125 -0
  34. data/lib/lolcommits/plugins/lolsrv.rb +72 -0
  35. data/lib/lolcommits/plugins/loltext.rb +73 -0
  36. data/lib/lolcommits/plugins/tranzlate.rb +113 -0
  37. data/lib/lolcommits/plugins/uploldz.rb +34 -0
  38. data/lib/lolcommits/runner.rb +117 -0
  39. data/lib/lolcommits/version.rb +3 -0
  40. data/lolcommits.gemspec +48 -0
  41. data/test/images/test_image.jpg +0 -0
  42. data/test/test_lolcommits.rb +70 -0
  43. data/vendor/ext/CommandCam/COPYING +674 -0
  44. data/vendor/ext/CommandCam/CommandCam.exe +0 -0
  45. data/vendor/ext/CommandCam/LICENSE +16 -0
  46. data/vendor/ext/imagesnap/ReadMeOrDont.rtf +117 -0
  47. data/vendor/ext/imagesnap/imagesnap +0 -0
  48. data/vendor/ext/videosnap/videosnap +0 -0
  49. data/vendor/fonts/Impact.ttf +0 -0
  50. metadata +397 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 21a45f88e1ba9b2033a65be83f351e4b27851a2a
4
+ data.tar.gz: 2accead49c569ce54961174c56796b2e4a24a48c
5
+ SHA512:
6
+ metadata.gz: f9c54ae5f591a9b37c037d3fed71a7c825fed99a0fad9a260cfe663e698a52b98db9ded8e99b405e9c3e0c7348ec3b591fcf3a154b3eef0b47aa4b530f1a5563
7
+ data.tar.gz: e15617011eeb90ba9a4508b9ff811a263a17b3a0574def0ed023af320fae710a2d165101a6d2cf87b4a78fa326b44113851b6066a1e07d57a21a7fb512bfdeab
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ coverage
2
+ *.gem
3
+ .bundle
4
+ Gemfile.lock
5
+ pkg/*
6
+ .rvmrc
7
+ .ruby-version
8
+ .ruby-gemset
9
+ results.html
10
+ html
11
+ tmp
12
+ *.swp
13
+ *.swo
data/.travis.yml ADDED
@@ -0,0 +1,33 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - 2.0.0
7
+
8
+ before_install:
9
+ - sudo apt-get update -qq
10
+ - sudo apt-get install -qq -y mplayer
11
+ - sudo apt-get install ffmpeg
12
+ # imagemagick is installed by default on normal travis image now
13
+ # - sudo apt-get install -qq -y imagemagick libmagickwand-dev
14
+
15
+ # matrix:
16
+ # allow_failures:
17
+ # - rvm: 2.0.0
18
+
19
+ branches:
20
+ except:
21
+ - gh-pages
22
+
23
+ notifications:
24
+ irc: "chat.freenode.net#lolcommits"
25
+
26
+ deploy:
27
+ provider: rubygems
28
+ api_key:
29
+ secure: Y7FFOMDahITtHYRV3UQAw+BA2JbqoArN/Ii9PUTU6RaLmTIvpZBzqtvR3r8ah3SdXNh0Cx10gVf0pRc6HXKTNQdwMWCkOQwukAb+9kLDKFxl3x+w4X2u6yWmtsyNMTWK1gF4hEF1IHnsdg2dYEoFfE2M5bHex85ND/Q6820sPa8=
30
+ gem: lolcommits
31
+ on:
32
+ tags: true
33
+ repo: mroth/lolcommits
data/CHANGELOG ADDED
@@ -0,0 +1,140 @@
1
+ 0.x.x (in development)
2
+ * TODO: figure out problems with GUI clients
3
+
4
+ 0.5.2 (5 December 2013)
5
+ * Allow lolsrv plugin to sync/upload gifs (@matthutchinson #180)
6
+ * Plugins refactor, can now configure themselves (@matthutchinson #179)
7
+ - also closes issue #136 and issue #73
8
+ * Fix for Twitter gem dependency issue (@matthutchinson #178)
9
+ * Added coveralls support (@Aaron1011 #177)
10
+ - gitignore updated, coveralls badge added to README
11
+ * Refactor tranzlate plugin, lolspeak now in plugin (@matthutchinson #176)
12
+ * Fix for 'Cannot satisfy json dependancy' (@matthutchinson #175)
13
+ * Better post commit hook enabling/disabling (@matthutchinson #173)
14
+ * Improved --enable option, accepts passing arguments (@matthutchinson #154)
15
+ - README updated to explain enabling with options
16
+
17
+ 0.5.1 (13 November 2013)
18
+ * Fix JSON gem issue #163 (@matthutchinson, #171)
19
+ * Enable image capture under Cygwin (@cwc, #105)
20
+ * Add Ruby PATH to post-commit hook (@matthutchinson, #155)
21
+ * "Stealth mode" where no notification is given (@sionide21, #156)
22
+ * BUGFIX: comparison error for animate (@Yabes, #151)
23
+
24
+ 0.5.0 (10 September 2013)
25
+ * better handling of LOLCOMMITS_DELAY (thx @leewillis77, #125)
26
+ * LOLCOMMITS_DEVICE support on Linux (thx @EbenezerEdelman, #139)
27
+ * better handling of repository names (thx @drocamor and @andromedado, #145 and #146)
28
+ * added new LOLCOMMITS_ANIMATE (or `--animate`) option (Mac/OSX only) (#114, #108)
29
+ - defaults to a 320x240 sized animated gif
30
+ - new vendored binary videosnap - https://github.com/matthutchinson/videosnap
31
+ - feature requires ffmpeg
32
+ - README updated with details and an example
33
+
34
+ 0.4.6 (12 August 2013)
35
+ * Fix for incorrect permissioning in gem issue (see #112)
36
+
37
+ 0.4.5 (8 July 2013)
38
+ * disable&remove statsd plugin (as per #94)
39
+ * fix issues with animated gif generation (#107)
40
+ * added new LOLCOMMITS_FORK (or --fork) option to fork the runner capturing (#109)
41
+
42
+ 0.4.4 (28 June 2013)
43
+ * add -g option to produce animated gifs! (thx @hSATAC, #95)
44
+
45
+ 0.4.3 (29 March 2013)
46
+ * bump mini_magick dependency to deal with security alert
47
+
48
+ 0.4.2 (11 March 2013)
49
+ * fix ruby 2.0 compatibility (#91)
50
+ * gracefully detect upstream issue with git color.ui being set to always (#50)
51
+ * handle external capture devices with special characters in name (#93)
52
+ * fixes to the uploldz plugin (#92)
53
+
54
+ 0.4.1 (17 February 2013)
55
+ * add lolsrv plugin (thx @sebastianmarr!, #82)
56
+ * enable feature to change font (thx @fukayatsu!, #89)
57
+ * correct activesupport gem name in bundle (thx @djbender!, #90)
58
+ * graceful detection of imagemagick not being installed (#87)
59
+ * restructure logging slightly to use Methadone::CLILogging in most places
60
+ * add a bunch of debugging output, viewable via --debug flag
61
+
62
+ 0.4.0 (13 January 2013)
63
+ * Switch the main ImageMagick wrapper from RMagick to mini_magick
64
+ - fix for RMagick not working with ImageMagick 6.8+ and generally
65
+ being a buggy unmaintained piece of crap
66
+ - this should also result in less problems with IM version changes
67
+ - some preliminary test work on using image_sorcery instead too
68
+ - perhaps finally kill issue #9 from continually resurfacing
69
+ * make sure quotes are properly handled in commit messages
70
+ * silence warnings generated by twitter gem in MRI 1.8.7
71
+
72
+ 0.3.4 (27 December 2012)
73
+ * Add uploldz plugin for posting to a remote server (thx @cnvandev)
74
+
75
+ 0.3.3 (26 November 2012)
76
+ * BUG: prevent repeated firing of lolcommits capture during a git rebase.
77
+
78
+ 0.3.2 (3 October 2012)
79
+ * Twitter posting support via the `twitter` plugin! (thx @coyboyrushforth!)
80
+
81
+ 0.3.1 (5 August 2012)
82
+ * fix regression with linux capture introduced in previous version
83
+
84
+ 0.3.0 (3 August 2012)
85
+ * fix bug involving git repositories with spaces in the name
86
+ * internal refactoring for modularity (thanks @kenmazaika!), should be easier
87
+ to add new plugin features to lolcommits now.
88
+ * add some extremeley basic anonymous usage tracking (if this bugs you, you
89
+ can disable via disabling the `statsd` plugin).
90
+
91
+ 0.2.0 (6 July 2012)
92
+ * improved build system and testing with cucumber/methadone
93
+ - goal is to get into a better framework to start doing major feature work
94
+ - this should lead to increased reliability across systems as we refactor
95
+ * writing tests (please help!)
96
+ * fix issues with packaged files not being readable after a sudo gem install
97
+
98
+ 0.1.5 (25 June 2012)
99
+ * fix tranzlate on ruby1.8
100
+
101
+ 0.1.4 (28 May 2012)
102
+ * set device on mac via --device (or LOLCOMMITS_DEVICE env variable) --
103
+ thanks @pioz (pull #51)
104
+
105
+ 0.1.3 (18 May 2012)
106
+ * add LGPLv3 license
107
+ * add option to translate your commit message to lolspeak! (thx
108
+ to @DanielleSucher!). To enable, set `LOLCOMMITS_TRANZLATE=1`.
109
+ * fix issue with older versions of IM crashing on interline spacing (pull #31 via @german)
110
+ * fix issue with git repos with no hooks directory (pull #43 via @mkmaster)
111
+ * fix missing dash in capture -c
112
+
113
+ 0.1.2 (22 April 2012)
114
+ * provide licensing info for CommandCam (Windows)
115
+ * bundle imagesnap as well to remove a dependency on Mac OS X
116
+
117
+ 0.1.1 (21 April 2012)
118
+ * Windows compatibility! Thanks to @Prydonious.
119
+
120
+ 0.1.0 (19 April 2012)
121
+ * Linux compatibility! Thanks to @madjar, @cscorely, and @Prydonius.
122
+
123
+ 0.0.3 (16 April 2012)
124
+ * use only first line for multi-line commit msgs (pull req #21)
125
+ * clean up some command line options
126
+
127
+ 0.0.2 (2 April 2012)
128
+ * add --delay option to delay image capture (thx JohanB), can be
129
+ persistently set via LOLCOMMITS_DELAY environment variable.
130
+ * add --last command to view most recent lolcommit for a repo
131
+ * add --browse command to open the lolcommit images directory for a particular repo
132
+
133
+ 0.0.1 (29 March 2012)
134
+ * initial release as a gem package, major refactoring for this
135
+ * refactored to remove git-hooks package dependency, now installs stub hook
136
+ directly into each git repo
137
+ * wordwrap commit_msg manually, to switch to use imagemagick annotate
138
+ instead of compositing multiply image Caption objects (this seems to be more
139
+ reliable to not glitch.)
140
+
data/CONTRIBUTING ADDED
@@ -0,0 +1,11 @@
1
+ GUIDELINES FOR CONTRIBUTING
2
+
3
+ 1. Fork it
4
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
5
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
6
+ 4. Push to the branch (`git push origin my-new-feature`)
7
+ 5. Create new Pull Request
8
+
9
+ You can run the existing test-suite via `rake`. Ensure nothing is broken, but since the test since is far from complete, it'd be awesome if you manually tested for regressions as well.
10
+
11
+ Please, if at all possible, write a passing test for the functionality you added.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in lolcommits.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
data/NOTES ADDED
@@ -0,0 +1,17 @@
1
+
2
+ AFTER:
3
+ * update version (.pre)
4
+ * update README
5
+ * open3 and unit assertions in cuke tests, can remove with aruba ?
6
+ * better plugin list output, showing enabled status etc
7
+ * GET RID OF LOLCOMMITS_DIR in TEST ENV and FAKE $HOME instead
8
+ * clean up bin/lolcommits or refactor or whatever it's a mess
9
+
10
+ MUCH LATER:
11
+ * auto version detection? (to encourage people to update)
12
+ * push stats to statsd or something so i know how many people are using it!
13
+ * pimp twitter
14
+ - in readme
15
+ - in post_install_message from gemspec
16
+ * a real website
17
+
data/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # lolcommits (git + webcam = lol)
2
+
3
+ lolcommits takes a snapshot with your webcam every time you git commit code, and archives a lolcat style image with it.
4
+ Git blame has never been so much fun.
5
+
6
+ By default, the lolimages are stored by a Github style short SHA in a `~/.lolcommits` directory created for you.
7
+
8
+ [![Gem Version](https://badge.fury.io/rb/lolcommits.png)](http://badge.fury.io/rb/lolcommits)
9
+ [![Build Status](https://secure.travis-ci.org/mroth/lolcommits.png?branch=master)](http://travis-ci.org/mroth/lolcommits)
10
+ [![Dependency Status](https://gemnasium.com/mroth/lolcommits.png)](https://gemnasium.com/mroth/lolcommits)
11
+ [![Coverage Status](https://coveralls.io/repos/mroth/lolcommits/badge.png)](https://coveralls.io/r/mroth/lolcommits)
12
+
13
+ ## Sample images
14
+ <img src="http://blog.mroth.info/images/postcontent/yearinsideprojects/lolcommits_users2.jpg" />
15
+
16
+ Please add your own lolcommit! Add to the [People Using Lolcommits](https://github.com/mroth/lolcommits/wiki/Lolcommits-from-around-the-world%21) page on the Wiki.
17
+
18
+ ## Installation
19
+ ### Mac OS X
20
+ You'll need ImageMagick installed. [Homebrew](http://mxcl.github.com/homebrew/) makes this easy. Simply do:
21
+
22
+ brew install imagemagick
23
+
24
+ Then simply do:
25
+
26
+ [sudo] gem install lolcommits
27
+
28
+ (If you're using RVM, you can/should probably omit the sudo, but the default MacOSX Ruby install is dumb and requires it.)
29
+
30
+ ### Linux
31
+ Install dependencies using your package manager of choice, for example in Arch:
32
+
33
+ sudo pacman -S mpv imagemagick
34
+
35
+ Then install the lolcommits gem:
36
+
37
+ gem install lolcommits
38
+
39
+ For more details, see [Installing on Linux](https://github.com/mroth/lolcommits/wiki/Installing-on-Linux).
40
+
41
+ ### Windows
42
+ Here be dragons! It all works but you'll need some more detailed instructions to get the dependencies installed. See the wiki page for [Installing on Windows](https://github.com/mroth/lolcommits/wiki/Installing-on-Windows).
43
+
44
+ ## Usage
45
+ ### Enabling and basic usage
46
+ From within any git repository, simply do a `lolcommits --enable`. From that point on, any git commit will automatically trigger a lolcommit capture! All lolcommits are stored in `~/.lolcommits` by default, placed in a subdirectory by project name, and with a filename matching the commit hash.
47
+
48
+ Don't worry about it too much, half the fun of lolcommits is forgetting it's installed!
49
+
50
+ ### Other commands
51
+ Ok, if you insist... Since you know about `--enable`, common sense suggests there is also a repository specific `--disable`, hopefully you can guess what that does. Other handy common commands include `--last`, which will open for display your most recent lolcommit image, or `--browse`, which pops open the directory containing all the lolcommit images for your current repository. You can always do `--help` for a full list of available commands.
52
+
53
+ **NOTE**: Any extra arguments you pass with the --enable command are auto-appended to the git-commit capture command. For example;
54
+
55
+ lolcommits --enable --delay=5 --animate=4 --fork
56
+
57
+ Will configure capturing of an animated gif (4 secs) after a 5 sec delay in a forked process. See the section below for more capture configuration variables.
58
+
59
+ ### Capture configuration variables
60
+ lolcommits has some capture options for additional lulz. You can enable these via environment variables like so;
61
+
62
+ * `LOLCOMMITS_DEVICE` set a webcam device - **mac and linux only**
63
+ * `LOLCOMMITS_ANIMATE` (in seconds) set time for capturing an animated gif - **mac only & requires ffmpeg**
64
+ * `LOLCOMMITS_DELAY` (in seconds) set delay persistently (for slow webcams to warmup)
65
+ * `LOLCOMMITS_FONT` set font file location for lolcommit text
66
+ * `LOLCOMMITS_FORK` fork lolcommit runner (capture command forks to a new process, speedily returning you to your terminal)
67
+ * `LOLCOMMITS_STEALTH` disable notification messages at commit time
68
+
69
+ Or they can be set via the following arguments in the capture command (located in your repository's `.git/hooks/post-commit` file).
70
+
71
+ * `--device=DEVICE` or `-d DEVICE`
72
+ * `--animate=SECONDS` or `-a SECONDS`
73
+ * `--delay=SECONDS` or `-w SECONDS`
74
+ * `--font=FONT_PATH` or `-f FONT_PATH`
75
+ * `--fork`
76
+ * `--stealth`
77
+
78
+ Read how to [configure commit capturing](https://github.com/mroth/lolcommits/wiki/Configure-Commit-Capturing) for more details.
79
+
80
+ ### Animated Gif Capturing
81
+ Animated gifs (Mac/OSX only) can take a while to generate (depending on the number of seconds you capture and the capabilities of your machine). `ffmpeg` is required and can be installed with brew like so;
82
+
83
+ brew install ffmpeg
84
+
85
+ To enable, just set the `LOLCOMMITS_ANIMATE` environment variable with the number of seconds to capture.
86
+ And like regular image captures you can use the env variables `LOLCOMMITS_DEVICE` and `LOLCOMMITS_DELAY` to change the capture device or delay time (seconds) before capturing.
87
+ If you find capturing an animated gif takes too long, try setting the `LOLCOMMITS_FORK=true` env variable.
88
+
89
+ ![Example animated lolcommit gif](http://cdn2.usa.bugleblogs.com/blogs/000/000/003/de0eb9aa695.gif "Example animated lolcommit gif")
90
+
91
+ ### Plugins
92
+ There are a growing amount of plugins for lolcommits to enable things like Twitter upload, translating your commit messages to lolspeak, etc. Check them out on the [plugins page](https://github.com/mroth/lolcommits/wiki/Configuring-Plugins).
93
+
94
+ ## Troubles?
95
+ Started a [FAQ](https://github.com/mroth/lolcommits/wiki/FAQ). Or take a read through the the [wiki](https://github.com/mroth/lolcommits/wiki)
96
+
97
+ ## Timelapse?
98
+ To watch your face as it decays while you program, you can create a quick mpeg of all your lolcommits snapshots (if you have `imagemagick` and `ffmpeg` installed):
99
+
100
+ convert `find . -type f -name "*.jpg" -print0 | xargs -0 ls -tlr | awk '{print $9}'` timelapse.mpeg