Skip to content

Instantly share code, notes, and snippets.

@TagPro-PreciousRoy
TagPro-PreciousRoy / laptimetracker.user.js
Last active August 29, 2015 14:07
TagPro Lap Time Tracker
// ==UserScript==
// @name TagPro Lap Time Tracker
// @namespace http://www.reddit.com/user/NewCompte
// @description Track lap times
// @include http://maptest.newcompte.fr:*
// @include http://maptest2.newcompte.fr:*
// @license WTFPL
// @author NewCompte
// @version 0.9
// ==/UserScript==
@TagPro-PreciousRoy
TagPro-PreciousRoy / tagpro-events-watcher.js
Last active August 29, 2015 14:07
TagPro Events Watcher Userscript
// ==UserScript==
// @name TagPro Events Watcher
// @version 0.1
// @description Logs all emitted and received events to/from the TagPro server
// @namespace http://www.reddit.com/user/TagProPreciousRoy
// @include http://tagpro-maptest.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://maptest.newcompte.fr:*
// @include http://tagpro-*.koalabeast.com:*
// @copyright 2014+, Precious Roy
@TagPro-PreciousRoy
TagPro-PreciousRoy / configure.ac.diff
Last active August 29, 2015 14:06
Homebrew formula for pulseaudio HEAD on Mac OS 10.9 (WIP)
diff --git a/configure.ac b/configure.ac
index f13ddb0..af41b9a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -518,13 +518,13 @@ AC_SEARCH_LIBS([backtrace], [execinfo ubacktrace])
if test "x$os_is_darwin" = "x1" ; then
AC_MSG_CHECKING([looking for Apple CoreService Framework])
# How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope
- AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/CoreServices.h],
- [LIBS="$LIBS -framework CoreServices"],
@TagPro-PreciousRoy
TagPro-PreciousRoy / pulseaudio-5.0.diff
Last active August 29, 2015 14:06
Homebrew formula for pulseaudio 5.0 on Mac OS 10.9.5
diff --git a/src/daemon/default.pa.in b/src/daemon/default.pa.in
index 4e77ae9..eb1ae73 100755
--- a/src/daemon/default.pa.in
+++ b/src/daemon/default.pa.in
@@ -75,7 +75,7 @@ load-module module-udev-detect
.ifexists module-detect@PA_SOEXT@
])dnl
### Use the static hardware detection module (for systems that lack udev support)
-load-module module-detect
+#load-module module-detect
@TagPro-PreciousRoy
TagPro-PreciousRoy / core-rtclock.c.diff
Created September 23, 2014 15:07
Fix AbsoluteToNanoseconds
diff --git a/src/pulsecore/core-rtclock.c b/src/pulsecore/core-rtclock.c
index ee04554..6e9ba5f 100644
--- a/src/pulsecore/core-rtclock.c
+++ b/src/pulsecore/core-rtclock.c
@@ -67,19 +67,7 @@ pa_usec_t pa_rtclock_age(const struct timeval *tv) {
struct timeval *pa_rtclock_get(struct timeval *tv) {
-#if defined(OS_IS_DARWIN)
- uint64_t val, abs_time = mach_absolute_time();