Skip to content

Instantly share code, notes, and snippets.

View newsomc's full-sized avatar

Clint Newsom newsomc

View GitHub Profile

DEMOS N' DONUNTS - May - 2019

Peter Iannone - Transferring Video from Google Drive and Dropbox to S3

Raed Atoui - Features as Infrastructure?

Jenna Feldman and Clint Newsom - PyCon 2019 Highlights

@newsomc
newsomc / gist:3b74863a6ab29de8d4b65b3f41cc38b7
Created May 30, 2018 19:38 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@newsomc
newsomc / markdown_splitting.rb
Last active February 24, 2016 16:23
Attempts to convert and offset for splitting paragraphs in HTML to markdown.
markdown = "Liorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\n# my header\n\n## my header 2\n- one\n- two\n- three\n\nAnd [some](#) [links](#)\n\nanother graph\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nLorem ipsum
Raw Log
Beginning deployment of cms (ef75f05931da73a932f835da4e668a2b97c3f048) with migration: "rake db:migrate".
(/usr/local/ey_resin/ruby/bin/gem list engineyard-serverside | grep 'engineyard-serverside ' | egrep -q '2\.6\.3[,)]') || (sudo sh -c 'cd `mktemp -d` && /usr/local/ey_resin/ruby/bin/gem install engineyard-serverside --no-rdoc --no-ri -v 2.6.3')
/usr/local/ey_resin/ruby/bin/engineyard-serverside _2.6.3_ deploy --account-name Food52 --app food52 --config '{"input_ref":"cms","deployed_by":"Clint Newsom"}' --environment-name staging --framework-env staging --git git@github.com:food52/food52.git --instance-roles ec2-184-72-248-217.compute-1.amazonaws.com:solo --instances ec2-184-72-248-217.compute-1.amazonaws.com --migrate 'rake db:migrate' --ref ef75f05931da73a932f835da4e668a2b97c3f048 --stack nginx_unicorn --verbose
+ 00s Initializing engineyard-serverside 2.6.3.
+ 00s ~> Verifying and propagating engineyard-serverside 2.6.3 to all servers.
+ 00s $ (ssh -i /home/deploy/.ssh/internal -o
=> "<p>TK</p>\r\n<p><a href=\"/recipes/35301-cinnamon-rolls\" target=\"_blank\">Cinnamon Rolls</a>&nbsp;by&nbsp;<a href=\"/users/3572-erinmcdowell\" target=\"_blank\">erinmcdowell</a></p>\r\n<p style=\"text-align: center;\"><a href=\"/recipes/35301-cinnamon-rolls\" target=\"_blank\"><img src=\"https://images.food52.com/RpY7QrE3N0Vl9LB8Dp1nBAExbck=/753x502/c9f564a8-2850-4d28-a8ce-3685e10b1536.17170272651_0caebeae78_b.jpg\" alt=\"\" width=\"753\" /><br /></a>\"Buns of steel.\"</p>\r\n<p style=\"text-align: center;\">&nbsp;</p>\r\n<p style=\"text-align: left;\"><a href=\"/recipes/587-poached-egg-bacon-sandwich\" target=\"_blank\">Poached Egg &amp; Bacon Sandwich</a>&nbsp;by&nbsp;<a href=\"/users/2591-pipsplate\" target=\"_blank\">pipsplate</a></p>\r\n<p style=\"text-align: center;\"><a href=\"/recipes/587-poached-egg-bacon-sandwich\" target=\"_blank\"><img src=\"https://images.food52.com/QUWOKVOxPLQ-jmL-FZpbgP0PZnU=/753x502/5710ab81-2736-4d0f-85cf-391f46f6e32a.05-28-13-egg-sandwich-007.jpg\" alt=\"\" width=\"753
[{"release": {"name": "Claude VonStroke EP", "slug": "claude-vonstroke-ep", "id": 38693}, "remixers": [], "mix": "Original Mix", "key": "C min", "slug": "whos-afraid-of-detroit-original-mix", "exclusive": false, "label": {"name": "dirtybird", "slug": "dirtybird", "id": 619}, "preview": {"mp4": {"offset": {"start": 145613, "end": 265613}, "url": "https://geo-samples.beatport.com/lofi/214938.LOFI.mp4"}, "mp3": {"offset": {"start": 145613, "end": 265613}, "url": "https://geo-samples.beatport.com/lofi/214938.LOFI.mp3"}}, "price": {"display": "$1.99", "value": 1.99, "code": "USD", "symbol": "$"}, "bpm": 125, "date": {"released": "2006-11-30", "published": "2006-11-30"}, "name": "Who's Afraid of Detroit", "title": "Who's Afraid of Detroit (Original Mix)", "duration": {"minutes": "6:04", "milliseconds": 364033}, "active": true, "genres": [{"name": "Minimal", "slug": "minimal", "id": 14}], "purchase": "individual", "formats": {"aiff": {"display": "$0.75", "value": 0.75, "code": "USD", "symbol": "$"}, "wav": {"display
@newsomc
newsomc / week10.json
Created November 14, 2014 15:20
Decade Week 10
[{"name": "Who's Afraid of Detroit", "preview": {"mp3": {"offset": {"start": 145613, "end": 265613}, "url": "https://geo-samples.beatport.com/lofi/214938.LOFI.mp3"}, "mp4": {"offset": {"start": 145613, "end": 265613}, "url": "https://geo-samples.beatport.com/lofi/214938.LOFI.mp4"}}, "id": 214938, "label": {"slug": "dirtybird", "name": "dirtybird", "id": 619}, "slug": "whos-afraid-of-detroit-original-mix", "artists": [{"slug": "claude-vonstroke", "name": "Claude VonStroke", "id": 5430}], "remixers": [], "date": {"released": "2006-11-30", "published": "2006-11-30"}, "key": "C min", "mix": "Original Mix", "genres": [{"slug": "minimal", "name": "Minimal", "id": 14}], "waveform": {"dynamic": {"url": null, "id": null}, "large": {"height": 250, "url": "https://geo-media.beatport.com/image/2353917.png", "id": 2353917, "width": 1500}}, "title": "Who's Afraid of Detroit (Original Mix)", "purchase": "individual", "formats": {"wav": {"display": "$0.75", "value": 0.75, "code": "USD", "symbol": "$"}, "aiff": {"display": "$
#!/bin/bash
if [[ -z $1 ]]; then
branch='test'
else
case $1 in
-b | --branch)
branch=$2
;;
--branch=*)
dom = React.DOM;
placeholder = document.createElement("li")
placeholder.className = "placeholder"
SearchItemBox = React.createClass
getInitialState: -> data: @props.data
handleItemSubmit: (item) ->
items = @state.data
dom = React.DOM;
placeholder = document.createElement("li")
placeholder.className = "placeholder"
SearchItemBox = React.createClass
getInitialState: -> data: @props.data
handleItemSubmit: (item) ->
items = @state.data