Skip to content

Instantly share code, notes, and snippets.

View tru's full-sized avatar

Tobias Hieta tru

View GitHub Profile
<iframe style="border: none" src="//html5-player.libsyn.com/embed/episode/id/2627559/height/360/width/640/theme/standard-mini/direction/no/autoplay/no/autonext/no/thumbnail/yes/preload/no/no_addthis/no/" height="360" width="640" scrolling="no" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
@tru
tru / gist:9206252
Created February 25, 2014 10:08
Plex Home Theater 1.0.10 Release Notes.
New:
- Loading large sections is now so much faster. Most of the code for this is thanks
to Lionel Chazallon from the RasPLEX team.
- To make browsing faster we have tweaked poster/thumb sizes all over the interface.
We show smaller posters where we have to and the large unscaled one when it's appropiate.
- Make it possible to opt-out of analytics collection.
- PHT now supports a new API for better player discovery. If you are using the Android client
it will find PHT more reliable as a cast target.
- Added setting for hiding cloud sync servers.
- Make it possible to hide All Episodes in advancedsettings
@tru
tru / gist:9251204
Created February 27, 2014 14:32
Two list comprehensions in a dict comprehension? Why not!
{k: v.strip() for (k, v) in [l.split(':') for l in [l for l in str(data).split("\\r\\n")[1:]] if ":" in l]}
@tru
tru / gist:9370622
Created March 5, 2014 16:27
Discover servers & players via GDM
__author__ = 'tru'
import asyncio
import netifaces
import socket
import aiohttp
GDM_PORT_SERVER = 32414
GDM_PORT_PLAYER = 32413
plockstat: tracing enabled for pid 77362
^C
R/W reader hold
Count nsec Lock Caller
-------------------------------------------------------------------------------
118 15036 libsystem_c.dylib`lcl_rwlock libsystem_c.dylib`mktime+0x4f
@tru
tru / gist:9488079
Created March 11, 2014 15:24
GDM lookup in Go.
package gdm
import (
"fmt"
"log"
"net"
"strconv"
"strings"
"time"
)
New:
* MUCH better transcoder streaming. When PMS 0.9.9.8 is released PHT will be able to do
live matroska streaming instead of HTTP Live Streaming. This solves a lot of problems
including:
* Audio data is now copied into the matroska container, that means that even
if you are transcoding you will get the full DTS/AC3 audio stream.
* Caching now works properly with transcoding
* Faster start-up and faster seek/resume than HLS.
Fixes:
@tru
tru / Untitled.txt
Created April 1, 2014 18:22
No description
)

Keybase proof

I hereby claim:

  • I am tru on github.
  • I am tru (https://keybase.io/tru) on keybase.
  • I have a public key whose fingerprint is 6AEA 7E73 CAF4 5331 F75E 9ADF A67B A204 2997 FBFA

To claim this, I am signing this object:

@tru
tru / bestof.md
Last active August 29, 2015 14:01
Kodsnack best-of