Skip to content

Instantly share code, notes, and snippets.

View jaredallard's full-sized avatar
:shipit:

Jared Allard jaredallard

:shipit:
View GitHub Profile
@jaredallard
jaredallard / mount-kubelet.sh
Last active February 25, 2018 05:05
Hack to mount /mnt/media-v1 into kubelet in rancher, docker-enter: docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter
#!/bin/sh
set -e
CONTAINER=r-kubernetes-kubelet-3-59fec1df
HOSTPATH=/mnt/media-v1
CONTPATH=/mnt/media-v1
REALPATH=$(readlink -f $HOSTPATH)
FILESYS=$(df -P $REALPATH | tail -n 1 | awk '{print $6}')
while read DEV MOUNT JUNK
@jaredallard
jaredallard / directstream.json
Last active January 26, 2018 02:04
Failed to switch audio tracks
2018-01-26 01:57:14.640
Application version: 3.2.70.0
https://media.tritonjs.com:4433/emby/videos/89b24d01481a033f5e6f3e85abeb2fb7/hls1/main/0.ts?DeviceId=c622f4a4436c96222f86b38fa3e808ba74af04f1&MediaSourceId=89b24d01481a033f5e6f3e85abeb2fb7&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=195726367&AudioBitrate=192000&PlaySessionId=64e5927d4d6d404bacef1253d81e6c55&api_key=&CopyTimestamps=false&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=cc090a08752635650bfee403698f9387&RequireAvc=true&RequireNonAnamorphic=false&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=SecondaryAudioNotSupported&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&h264-deinterlace=true
{"Protocol":"File","Id":"89b24d01481a033f5e6f3e85abeb2fb7","Path":"/mnt/media-v1/production/tv/Mirai Nikki/01 - Sign Up.libx264.mkv","Type":"Default","Container":"mkv,webm","Name":"01 - Sign Up.libx264.mkv","IsRemote":false,"ETag":"cc090a08752635650bfee403698f9387"
@jaredallard
jaredallard / serverlog.txt
Created January 25, 2018 18:20
Media Trancoded when it wasn't supposed too
This file has been truncated, but you can view the full file.
2018-01-25 04:14:43.128 Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
2018-01-25 04:14:43.175 Info Main: Emby
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.13.0.31
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 2
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
@jaredallard
jaredallard / gen-tree.js
Created January 18, 2018 22:24
Terrible Channel to "branch" code
// WEB ENV
const fs = require('fs')
const data = fs.readFileSync('./workfront2.json') // actually proofhq
let channel;
try {
channel = JSON.parse(data)
} catch(e) {
throw new Error('Failed to process Channel JSON.')
@jaredallard
jaredallard / gen-inputs.js
Last active January 17, 2018 17:43
Generate Forge Inputs easily: https://asciinema.org/a/157554
#!/usr/bin/env node
/**
* Generates a input/output list without writing JSON
*
* INSTALL: yarn add colors csv lodash
*
* @author Jared Allard <[email protected]>
* @license MIT
*/

Keybase proof

I hereby claim:

  • I am jaredallard on github.
  • I am jaredallard (https://keybase.io/jaredallard) on keybase.
  • I have a public key ASDhZ3aCV1GM6DvU0rURtz2OyPWr9mp3-ba2IFzImxMD0Ao

To claim this, I am signing this object:

@jaredallard
jaredallard / <id>.log
Created December 27, 2017 03:04
android log (emby)
Tue Dec 26 18:59:21 PST 2017 AndroidSyncFileRepository started. syncPath: /storage/emulated/0/Android/data/com.mb.android/files/sync
Tue Dec 26 18:59:21 PST 2017 Calling MediaSyncAdapter.updateSyncPreferences. syncPath: null
Tue Dec 26 18:59:22 PST 2017 Received instruction to updateCredentials
Tue Dec 26 18:59:22 PST 2017 AppVersion: 2.9.76
Tue Dec 26 18:59:22 PST 2017 DeviceId: 56d536f9f0e32877
Tue Dec 26 18:59:22 PST 2017 DeviceName: ONEPLUS A3000
Tue Dec 26 18:59:22 PST 2017 initStore called
Tue Dec 26 18:59:22 PST 2017 IAB helper created.
Tue Dec 26 18:59:22 PST 2017 Starting in-app billing setup.
Tue Dec 26 18:59:22 PST 2017 Billing service connected.
@jaredallard
jaredallard / server-63649929600.txt
Created December 27, 2017 02:41
Server Log From Emby
2017-12-27 00:00:00.017 Info App: Application version: 3.2.60.0
2017-12-27 00:00:00.017 Info App: Emby
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.13.0.21
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 2
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
/**
* A* (A-Star) Pathfinding Algorithm in JavaScript
* @author Matthew Trost
* @license Creative Commons Attribution-ShareAlike 3.0 Unported License
* @datepublished December 2010
*/
function astar (map, heuristic, cutCorners) {
var listOpen = [];
var listClosed = [];
@jaredallard
jaredallard / route.js
Created May 18, 2016 23:25
Route for Dynamic Express constructor thing.
/**
* /users route.
*
* @author Jared Allard <[email protected]>
* @version 1.0.0.
* @license MIT
**/
'use strict';