Skip to content

Instantly share code, notes, and snippets.

View dularion's full-sized avatar

Antonia Engfors dularion

View GitHub Profile
@xlson
xlson / mp4it
Created October 7, 2010 14:29
Groovy script that uses ffmpeg to convert an avi file into a mp4 for viewing on an iPhone or iPod
#!/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()
@thoop
thoop / nginx.conf
Last active December 8, 2023 21:55
Official prerender.io nginx.conf for nginx
# 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;
#!/bin/sh
#############################################
# Output file for HTML5 video #
# Requirements: #
# - handbrakecli #
# #
# usage: #
# ./html5VideoHandBrakeFolder.sh folder #
# #