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/sh | |
############################################# | |
# Output file for HTML5 video # | |
# Requirements: # | |
# - handbrakecli # | |
# # | |
# usage: # | |
# ./html5VideoHandBrakeFolder.sh folder # | |
# # |
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
# Change YOUR_TOKEN to your prerender token | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
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
#!/usr/bin/env groovy | |
// Validating arguments | |
assert args.size() == 1 : "mp4it takes 1 argument: the path to the file to be conerted into mp4" | |
assert new File(args[0]).exists() : "The file you specified could not be found." | |
def videoFilePath = args[0] | |
def outputFilePath = videoFilePath.replaceAll(/\.avi$/, '.mp4') | |
assert !new File(outputFilePath).exists() |