View gist:175f118a49a9d3d18afcae912c35b186
This file contains 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
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 |
View example.mpd
This file contains 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
<?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="http://ilab-dst1.philo.com:8000/video/$Bandwidth$/$Time$.ismv" initialization="http://ilab-dst1.philo.com:8000/video/$Bandwidth$/init.mp4"> | |
<SegmentTimeline> | |
<S t="356038323" d="270270"/> | |
</SegmentTimeline> | |
</SegmentTemplate> | |
<Representation id="0-video" mimeType="video/mp4" codecs="avc1.4d401f" width="1280" height="720" frameRate="30000/1001" sar="1:1" startWithSAP="1" bandwidth="2085966"/> |
View hlsclient_input_webm.json
This file contains 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
{ | |
"streams": { | |
"Nasa-high": { | |
"input-path": "/msfc/Wifi.m3u8", | |
"servers": ["http://liveips.nasa.gov.edgesuite.net"], | |
"bandwidth": 1080434 | |
} | |
}, | |
"actions": [ |
View gist:edb9bb270a637f746df1
This file contains 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
➜ 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-4.2.5.1/lib/active_support/dependencies.rb:274:in `require' | |
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require' | |
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency' | |
from /home/gabe/.rvm/gems/ruby-2.3.0@family/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require' |
View rake_newb_output.txt
This file contains 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
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 |
View has_custom_fields_backed_by_json.rb
This file contains 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
# inspired by http://faxon.org/2015/02/03/edit-rails-activerecord-json-attributes-in-html-forms | |
# NOTE requires `custom_fields` column! | |
# | |
# class Foo | |
# include HasCustomFieldsBackedByJSON | |
# custom_fields_keys :bar, :baz | |
# end | |
module HasCustomFieldsBackedByJSON | |
extend ActiveSupport::Concern |
View seeds_spec.rb
This file contains 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
require 'rails_helper' | |
describe "seeds.rb script" do | |
def count_all_tables | |
ActiveRecord::Base.descendants | |
.sort_by(&:to_s).map(&:count) | |
end | |
it "is idempotent" do | |
load Rails.root.join("db", "seeds.rb") |
View pattern_match_on_struct_type.exs
This file contains 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
defmodule Bar do | |
defstruct herp: "Derp" | |
end | |
defmodule Baz do | |
defstruct herp: "Derp" | |
end | |
defmodule Foo do |
View population_spec.rb
This file contains 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
class Animal | |
include Population | |
end | |
class Kangaroo < Animal | |
end | |
class CaptainKangaroo < Kangaroo | |
end |
View gist:c433c5d46c38e5d5c8b2
This file contains 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
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 |
NewerOlder