Skip to content

Instantly share code, notes, and snippets.

View sinkers's full-sized avatar

Andrew Sinclair sinkers

View GitHub Profile
Thu Apr 2 12:54:58 2020 kern.notice kernel: [ 0.000000] Linux version 3.18.44 (app@runner-DsCEGNRx-project-141-concurrent-1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r40569) ) #1 Fri Mar 13 09:37:25 UTC 2020
Thu Apr 2 12:54:58 2020 kern.debug kernel: [ 0.000000] MyLoader: sysp=511b6c54, boardp=e6f2066e, parts=9bcd964c
Thu Apr 2 12:54:58 2020 kern.info kernel: [ 0.000000] bootconsole [early0] enabled
Thu Apr 2 12:54:58 2020 kern.info kernel: [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
Thu Apr 2 12:54:58 2020 kern.info kernel: [ 0.000000] SoC: Atheros AR9344 rev 3
Thu Apr 2 12:54:58 2020 kern.info kernel: [ 0.000000] Determined physical RAM map:
Thu Apr 2 12:54:58 2020 kern.info kernel: [ 0.000000] memory: 08000000 @ 00000000 (usable)
Thu Apr 2 12:54:58 2020 kern.info kernel: [ 0.000000] Initrd not found or empty - disabling initrd
Thu Apr 2 12:54:58 2020 kern.warn kernel: [ 0.000000] Zone ranges:
Thu Apr 2 12:54:58 2020 kern.warn kernel: [ 0.000000] N
@sinkers
sinkers / soil_moisture.c
Last active February 7, 2020 08:02
soil_moisture.c
#define voltageFlipPin1 6
#define voltageFlipPin2 7
#define voltageFlipPin3 4
#define voltageFlipPin4 5
#define sensorPin A1
#define SENSOR_PIN_SOIL_VIN A2
#define SENSOR_PIN_TEMP A0
#define NUM_READS 10
mediastreamvalidator http://ovo-media.s3-website-ap-southeast-2.amazonaws.com/audi/ovoultimategtexperience/master.m3u8
mediastreamvalidator: Beta Version 1.1(150608)
Validating master playlist http://ovo-media.s3-website-ap-southeast-2.amazonaws.com/audi/ovoultimategtexperience/master.m3u8
Validating media playlist video-600k-_iframe.m3u8 [ 5.16 Mbits/sec]
Validating media playlist video-400k-_iframe.m3u8 [ 3.49 Mbits/sec]
Validating media playlist video-600k-_v4.m3u8 [766.00 kbits/sec]
Validating media playlist video-400k-_v4.m3u8 [484.00 kbits/sec]
Validating media playlist audio-64k-_v4.m3u8 [74.00 kbits/sec]
Validating alternate rendition playlist audio-64k-_v4.m3u8
@sinkers
sinkers / gist:73312c474a8e7ece5998
Created December 12, 2014 03:54
Videojs player for live DVR
<link href="http://vjs.zencdn.net/4.10/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.10/video.js"></script>
<script src="videojs-media-sources.js"></script>
<script src="videojs.hls.js"></script>
<script>
</script>
<script>
videojs.options.flash.swf = "video-js-swf/dist/video-js.swf";
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0000.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0001.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0002.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0003.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0004.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0005.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0006.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0007.jpg
img/a97ad3c9-f410-40b5-a2e5-580b758576c3/000/frame_0008.jpg
<VAST version="2.0" xmlns:MM="http://api.mediamind.com/V1/DataContracts">
<Ad id="10933326">
<InLine>
<AdSystem>
<![CDATA[MediaMind]]>
</AdSystem>
<AdTitle>
<![CDATA[Mi9_10056_15_PO_101014]]>
</AdTitle>
<Description>
<adResponse networkId="375613" version="1">
<rendererManifest version="1">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;adRenderers version=&apos;1&apos;&gt;&lt;adRenderer adUnit=&apos;video,slate,&apos; contentType=&apos;video/mp4-h264,video/mp4,video/m4v,video/mp4-mpeg4,video/mp4-mpeg4_simple,video/m4v-h264_less_eq_level_3_baseline-640-480-less_eq_1500_kbps-aaclc,video/mp4-h264_less_eq_level_3_baseline-640-480-less_eq_1500_kbps-aaclc,video/m4v-h264_less_level_1.3_baseline-320-240-less_eq_768_kbps-aaclc,video/mp4-h264_less_level_1.3_baseline-320-240-less_eq_768_kbps-aaclc,video/m4v-mpeg4-640-480-less_eq_2500_kbps-aaclc,video/mp4-mpeg4-640-480-less_eq_2500_kbps-aaclc,video/mp4-h264_less_eq_level_3.1_main-heaac,video/mp4-h264_less_eq_level_3.1_high-heaac,video/mp4-h264_less_eq_level_4.1_main-heaac,video/mp4-h264_less_eq_level_4.1_high-heaac,application/x-mpegurl,video/3gpp,video/mp4-h264_less_eq_level_3_baseline-less_eq_768_kbps-aaclc,video/mp4-h264_less_eq_level_4.1_main-less_eq_768_kb
<adRequest networkId="375613" version="1" profile="375613:MSN_AU_iOS_Live">
<capabilities>
<supportsSlotTemplate />
<supportsAdUnitInMultipleSlots />
<supportNullCreative />
<supportsSlotCallback />
<requiresVideoCallbackUrl />
<supportsFallbackAds />
<expectMultipleCreativeRenditions />
<requiresRendererManifest />
<adResponse networkId="375613" version="1">
<rendererManifest version="1">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;adRenderers version=&apos;1&apos;&gt;&lt;adRenderer adUnit=&apos;video,slate,&apos; contentType=&apos;video/mp4-h264,video/mp4,video/m4v,video/mp4-mpeg4,video/mp4-mpeg4_simple,video/m4v-h264_less_eq_level_3_baseline-640-480-less_eq_1500_kbps-aaclc,video/mp4-h264_less_eq_level_3_baseline-640-480-less_eq_1500_kbps-aaclc,video/m4v-h264_less_level_1.3_baseline-320-240-less_eq_768_kbps-aaclc,video/mp4-h264_less_level_1.3_baseline-320-240-less_eq_768_kbps-aaclc,video/m4v-mpeg4-640-480-less_eq_2500_kbps-aaclc,video/mp4-mpeg4-640-480-less_eq_2500_kbps-aaclc,video/mp4-h264_less_eq_level_3.1_main-heaac,video/mp4-h264_less_eq_level_3.1_high-heaac,video/mp4-h264_less_eq_level_4.1_main-heaac,video/mp4-h264_less_eq_level_4.1_high-heaac,application/x-mpegurl,video/3gpp,video/mp4-h264_less_eq_level_3_baseline-less_eq_768_kbps-aaclc,video/mp4-h264_less_eq_level_4.1_main-less_eq_768_kb
@sinkers
sinkers / gist:cfffec1acf879b1a524d
Created September 16, 2014 04:18
IIS DASH sample manifest
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" mediaPresentationDuration="PT52.250S" minBufferTime="PT4S" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static">
<Period>
<AdaptationSet bitstreamSwitching="true" codecs="mp4a.40.2" contentType="audio" group="5" id="1" lang="en" mimeType="audio/mp4" profiles="ccff" segmentAlignment="true">
<SegmentTemplate initialization="QualityLevels($Bandwidth$)/Fragments(audio_eng=i,format=mpd-time-csf)" media="QualityLevels($Bandwidth$)/Fragments(audio_eng=$Time$,format=mpd-time-csf)" timescale="10000000">
<SegmentTimeline>
<S d="20201360" />
<S d="20201361" />
<S d="20201360" />
<S d="20201361" />