Skip to content

Instantly share code, notes, and snippets.

View jasonwmiller's full-sized avatar
🚀

Jason W. Miller jasonwmiller

🚀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jasonwmiller on github.
  • I am jasonwmiller (https://keybase.io/jasonwmiller) on keybase.
  • I have a public key ASCuPfSfKBWp41YnDLofuIiGF-5yS90ZwWFLI0KJjBn0Ywo

To claim this, I am signing this object:

#!/bin/bash
#####
# Builds a custom nginx
#
# RELEASE_TAGS="+your+tags+here"
# RELEASE_MAINTAINER="Your Name Here"
# RELEASE_MAINTAINER_EMAIL="hi@example.com"
# RELEASE_MESSAGE="Some message"
#
@jasonwmiller
jasonwmiller / gist:4372a762bf89ac8fe52d
Last active August 29, 2015 14:14
ffmpeg for website videos
first install ffmpeg
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid
copy your source file to input.mp4
to process to mp4 run:
ffmpeg -i input.mp4 -vcodec libx264 -crf 31 -an -vf scale=1280:720 output.mp4
to process to webm run:
ffmpeg -i input.mp4 -c:v libvpx -an -vf scale=1280:720 output.webm
@jasonwmiller
jasonwmiller / designer.html
Created September 18, 2014 17:01
designer
<link rel="import" href="../ace-element/ace-element.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@jasonwmiller
jasonwmiller / anchorinclude.js
Created October 18, 2012 04:16 — forked from scottjehl/anchorinclude.js
Anchor-include Pattern
/*
* anchor-include pattern for already-functional links that work as a client-side include
* Copyright 2011, Scott Jehl, scottjehl.com
* Dual licensed under the MIT
* Idea from Scott Gonzalez
* to use, place attributes on an already-functional anchor pointing to content
* that should either replace, or insert before or after that anchor
* after the page has loaded
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a>
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a>
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@jasonwmiller
jasonwmiller / redis_session_backend.py
Created April 11, 2012 05:01 — forked from mikeyk/redis_session_backend.py
A redis backend for Django Sessions, tested on Django 1.3+
from django.contrib.sessions.backends.base import SessionBase, CreateError
from django.conf import settings
from django.utils.encoding import force_unicode
import redis
class SessionStore(SessionBase):
""" Redis store for sessions"""
def __init__(self, session_key=None):
self.redis = redis.Redis(
@jasonwmiller
jasonwmiller / web-app.html
Created March 29, 2012 12:42 — forked from tfausak/ios-8-web-app.html
Web app with icons and startup images for iOS
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<!-- iPhone -->
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png"
sizes="57x57"
@jasonwmiller
jasonwmiller / dabblet.css
Created February 4, 2012 03:50 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #123456;
background: linear-gradient(110deg, #123456, #654321);
min-height:100%;