Skip to content

Instantly share code, notes, and snippets.

View tru's full-sized avatar

Tobias Hieta tru

View GitHub Profile
on osx
echo "<advancedsettings><gui><algorithmdirtyregions>0</algorithmdirtyregions></gui></advancedsettings>" > ~/Library/Application\ Support/Plex\ Home\ Theater/userdata/advancedsettings.xml
<advancedsettings><gui><algorithmdirtyregions>0</algorithmdirtyregions></gui></advancedsettings>
--- src/video/quartz/SDL_QuartzWindow.m.orig 2013-10-31 04:29:45.000000000 -0700
+++ src/video/quartz/SDL_QuartzWindow.m 2013-10-31 04:30:05.000000000 -0700
@@ -87,7 +87,7 @@
SDL_VideoDevice *this = (SDL_VideoDevice*)current_video;
/* make sure pixels are fully opaque */
- if (! ( SDL_VideoSurface->flags & SDL_OPENGL ) )
+ if ( SDL_VideoSurface && ! ( SDL_VideoSurface->flags & SDL_OPENGL ) )
QZ_SetPortAlphaOpaque ();
* thread #1: tid = 0x1f59f2, 0x000000010121517b Plex Home Theater`yuv420_rgb32_MMX(c=<unavailable>, src=0x00007fff5fbfeec0, srcStride=0x00007fff5fbfee90, srcSliceY=0, srcSliceH=720, dst=0x00007fff5fbfeea0, dstStride=0x00007fff5fbfee80) + 395 at yuv2rgb_template.c:374, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x121702000)
frame #0: 0x000000010121517b Plex Home Theater`yuv420_rgb32_MMX(c=<unavailable>, src=0x00007fff5fbfeec0, srcStride=0x00007fff5fbfee90, srcSliceY=0, srcSliceH=720, dst=0x00007fff5fbfeea0, dstStride=0x00007fff5fbfee80) + 395 at yuv2rgb_template.c:374
(lldb) bt
* thread #1: tid = 0x1f59f2, 0x000000010121517b Plex Home Theater`yuv420_rgb32_MMX(c=<unavailable>, src=0x00007fff5fbfeec0, srcStride=0x00007fff5fbfee90, srcSliceY=0, srcSliceH=720, dst=0x00007fff5fbfeea0, dstStride=0x00007fff5fbfee80) + 395 at yuv2rgb_template.c:374, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0x121702000)
frame #0: 0x000000010121517b Plex Hom
<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"
)