This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/path/2/Rscript | |
| # License: CC0 (just be nice and point others to where you got this) | |
| # Author: Robert M Flight <[email protected]>, github.com/rmflight | |
| # | |
| # This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION | |
| # and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have | |
| # good reasons for not doing it on the pre-commit. | |
| # | |
| # To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # First parameter is the file to convert, second optional parameter is the bitrate (default=2000k). | |
| # | |
| # This is the HTML 5 code for including the videos: | |
| # <video width="450" controls> | |
| # <source src="example.ogv" type="video/ogg; codecs=theora,vorbis"> | |
| # <source src="example.webm" type="video/webm"> | |
| # <source src="example.mp4" type="video/mp4"> | |
| # </video> |