Skip to content

Instantly share code, notes, and snippets.

@gkop
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": ["http://liveips.nasa.gov.edgesuite.net"],
"bandwidth": 1080434
}
},
"actions": [
@gkop
gkop / auto_strip_text_attributes.rb
Created March 20, 2012 22:42 — forked from rahearn/auto_strip_text_attributes.rb
Adding functionality to every model in a system
# This file is in lib
module AutoStripTextAttributes
extend ActiveSupport::Concern
included do
text_columns = columns.collect do |c|
c.name.to_sym if c.type == :string || c.type == :text
end.compact