Skip to content

Instantly share code, notes, and snippets.

View Timo6's full-sized avatar

Timothy Furlong Timo6

View GitHub Profile
@Timo6
Timo6 / virgin_restart.pl
Last active May 23, 2018 17:12
Automatically restart a Virgin Media Superhub 2
#!/usr/bin/perl
# Works on my Superhub 2 (hardware 3.11, software 1.01.29)
# Excute with ./virgin_restart.pl _IPADDRESS_ _HUBPASSWORD_
use WWW::Mechanize;
my $mech = WWW::Mechanize->new( autocheck => 0);
# Login
$url="http://@ARGV[0]";
@Timo6
Timo6 / trace1
Last active August 29, 2015 14:04
VDrift OpenGL trace 27/7/14
0.00 µs CGLChoosePixelFormat({kCGLPFAOpenGLProfile, 12800, kCGLPFAColorSize, 32, kCGLPFADepthSize, 24, kCGLPFADoubleBuffer, kCGLPFADisplayMask, 2}, 0x101256b70, 2);
0.00 µs CGLSetOption(kCGLGOUseErrorHandler, 0);
0.00 µs CGLCreateContext(0x101256b70, 0x00000000, 0x102023e00);
0.00 µs CGLSetParameter(0x102023e00, 1236, {19230720});
0.00 µs CGLSetSurface(0x102023e00, {560, 218, 800, 622}, {0, 22, 800, 600});
1.40 µs glScissor(0, 0, 800, 600);
1.52 µs glViewport(0, 0, 800, 600);
0.00 µs CGLUpdateContext(0x102023e00);
4.01 µs glGetString(GL_VERSION); returns: 0x10900f2be
0.00 µs CGLSetParameter(0x102023e00, kCGLCPSwapInterval, {0});
@Timo6
Timo6 / trace2
Last active August 29, 2015 14:04
VDrift OpenGL trace 2 27/7/14
0.00 µs CGLSetOption(kCGLGOUseErrorHandler, 0);
0.00 µs CGLChoosePixelFormat({kCGLPFAOpenGLProfile, 12800, kCGLPFAColorSize, 32, kCGLPFADepthSize, 24, kCGLPFADoubleBuffer, kCGLPFADisplayMask, 2}, 0x10121d1f0, 2);
0.00 µs CGLSetOption(kCGLGOUseErrorHandler, 0);
0.00 µs CGLCreateContext(0x10121d1f0, 0x00000000, 0x102827e00);
0.00 µs CGLSetParameter(0x102827e00, 1236, {19211680});
0.00 µs CGLSetSurface(0x102827e00, {560, 218, 800, 622}, {0, 22, 800, 600});
0.79 µs glScissor(0, 0, 800, 600);
1.16 µs glViewport(0, 0, 800, 600);
0.00 µs CGLUpdateContext(0x102827e00);
2.53 µs glGetString(GL_VERSION); returns: 0x10c80f2be
Index: Main
===================================================================
--- Main (revision 1042)
+++ Main (working copy)
@@ -12,7 +12,7 @@
[ widget-00 ]
image = logo.png
-center = 0.31, 0.1
+center = 0.31, 0.09
Index: PracticeGame
===================================================================
--- PracticeGame (revision 1042)
+++ PracticeGame (working copy)
@@ -44,10 +44,9 @@
onmoveright = game.track.next
onmoveup = widget-15
onmovedown = widget-03b
-onfocus = widget-02b.alpha:1 widget-02c.alpha:1 widget-02d.val:0.8
-onblur = widget-02b.alpha:0 widget-02c.alpha:0 widget-02d.val:1.0
INFO: Multi-processor system detected. Run with -multithreaded argument to enable multithreading (EXPERIMENTAL).
INFO: Starting VDrift: 2011-10-22-release, Version: 140-g30ed983, O/S: Mac OS
INFO: Home directory: /Users/timothyfurlong
INFO: Settings file: /Users/timothyfurlong/Library/Preferences/VDrift/VDrift.config
INFO: Data directory: /Users/timothyfurlong/Documents/Development/VDrift/Dev/Timo6/vdrift/vdrift-mac/build/Debug/VDrift.app/Contents/Resources/data
DATA_DIR: /Users/timothyfurlong/Documents/Development/VDrift/Dev/Timo6/vdrift/vdrift-mac/build/Debug/VDrift.app/Contents/Resources/data
INFO: Temporary directory: /Users/timothyfurlong/Library/Preferences/VDrift/tmp
INFO: Log file: /Users/timothyfurlong/Library/Preferences/VDrift/log.txt
INFO: Disabling antialiasing
INFO: Display change was successful: 1600x900x32 24z fullscreen=0