Skip to content

Instantly share code, notes, and snippets.

@mtekk
mtekk / plex
Created February 28, 2014 05:45
PlexHT init.d script for Gentoo/Funtoo
#!/sbin/runscript
# Released under the 2-clause BSD license.
description="Start and stop Plex Home Theater"
depend()
{
need net
}
@mtekk
mtekk / rollovertest.cpp
Created October 12, 2012 04:23
A rollover detection test
//A rollover detection test
//Try compiling using: g++ rollovertest.cpp -02 -orollover
//Run as ./rollover
//If it hangs your GCC is not behaving correctly
//Based off of code seen in the HINT benchmark
#include <iostream>
int main()
{
int i(0), j(0), iter(0);
i = 1;