Skip to content

Instantly share code, notes, and snippets.

John Havlik mtekk

View GitHub Profile
@mtekk
mtekk / plex
Created Feb 28, 2014
PlexHT init.d script for Gentoo/Funtoo
View plex
#!/sbin/runscript
# Released under the 2-clause BSD license.
description="Start and stop Plex Home Theater"
depend()
{
need net
}
@mtekk
mtekk / rollovertest.cpp
Created Oct 12, 2012
A rollover detection test
View rollovertest.cpp
//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;
You can’t perform that action at this time.