Skip to content

Instantly share code, notes, and snippets.

ffprobe -version
ffprobe version 3.0.2-4 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.4.0 (Debian 5.4.0-3) 20160603
configuration: --prefix=/usr --extra-version=4 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --e
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" minBufferTime="PT12S" suggestedPresentationDelay="PT0S" type="static" mediaPresentationDuration="PT6S">
<Period id="0" start="PT0S">
<AdaptationSet segmentAlignment="true">
<SegmentTemplate presentationTimeOffset="356038323" timescale="90000" media="$Bandwidth$/$Time$.ismv" initialization="$Bandwidth$/init.mp4">
<S t="356038323" d="270270"/>
<Representation id="0-video" mimeType="video/mp4" codecs="avc1.4d401f" width="1280" height="720" frameRate="30000/1001" sar="1:1" startWithSAP="1" bandwidth="2085966"/>
gkop / hlsclient_input_webm.json
Created June 2, 2016 19:35 — forked from jbochi/hlsclient_input_webm.json
New input JSON for hlsclient
"streams": {
"Nasa-high": {
"input-path": "/msfc/Wifi.m3u8",
"servers": [""],
"bandwidth": 1080434
"actions": [
➜ family git:(master) guard
13:44:59 - INFO - LiveReload is waiting for a browser to connect.
13:44:59 - INFO - Guard::Minitest 2.4.2 is running, with Minitest::Unit 5.8.4!
13:44:59 - INFO - Running: all tests
13:45:05 - INFO - Browser connected.
/home/gabe/binti/family/spec/spec_helper.rb:19:in `<top (required)>': undefined method `configure' for RSpec:Module (NoMethodError)
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport- `require'
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport- `block in require'
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport- `load_dependency'
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport- `require'
rake newb
rm -rf doc
/home/gabe/play/ruby_parser/tmp/isolate/ruby-2.3.0/bin/rdoc --title ruby_parser-3.8.1 Documentation -o doc --main README.txt lib History.txt Manifest.txt README.txt
Parsing sources...
100% [ 8/ 8] lib/ruby_parser_extras.rb
Generating Darkfish format into /home/gabe/play/ruby_parser/doc...
Files: 8
# inspired by
# NOTE requires `custom_fields` column!
# class Foo
# include HasCustomFieldsBackedByJSON
# custom_fields_keys :bar, :baz
# end
module HasCustomFieldsBackedByJSON
extend ActiveSupport::Concern
gkop / seeds_spec.rb
Created June 11, 2015 19:57
require 'rails_helper'
describe "seeds.rb script" do
def count_all_tables
it "is idempotent" do
load Rails.root.join("db", "seeds.rb")
gkop / pattern_match_on_struct_type.exs
Created April 1, 2015 23:34
Pattern match on struct type
defmodule Bar do
defstruct herp: "Derp"
defmodule Baz do
defstruct herp: "Derp"
defmodule Foo do
gkop / population_spec.rb
Created March 17, 2015 17:23
Spec for Population mixin that counts instances of class and its subclasses
class Animal
include Population
class Kangaroo < Animal
class CaptainKangaroo < Kangaroo
Given the services are running # features/step_definitions/fig_steps.rb:3
Running: fig build && (fig up -d || true) && sleep 10
Process exited successfully
nginx version: nginx/1.7.9
And I run "nginx -v" on the "web" service # features/step_definitions/fig_steps.rb:19
Running: fig run -T web bash -c "sleep 1; nginx -v"
Process exited successfully
Then I should see "nginx" # features/step_definitions/cli_steps.rb:1
And I should see "1.7" # features/step_definitions/cli_steps.rb:1