Skip to content

Instantly share code, notes, and snippets.

View gabonator's full-sized avatar
👨‍🏭
at work

Gabriel Valky gabonator

👨‍🏭
at work
View GitHub Profile
@gabonator
gabonator / project1.html
Created June 15, 2013 07:44
CNC - another project that drills some holes
<html>
<body>
<pre id="console">
</pre>
<script language="javascript">
function log(s)
{
if ( typeof(s) == "string" )
document.getElementById("console").innerHTML += s + "\n";
@gabonator
gabonator / cm1.txt
Created June 15, 2013 07:47
toromod servo servo multi channel quick and dirty remote control application, including USB driver
#1P900T500
@gabonator
gabonator / main.c
Created June 15, 2013 07:49
Yoics/IP9100 video server recorder for linux routers
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/vfs.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@gabonator
gabonator / ball.html
Created June 15, 2013 08:03
realtime rendered 3d ball in javascript
<html>
<body bgcolor="black">
<canvas id="canvas" style="border:1px #808080 dashed"></canvas>
<script language="javascript">
var w = 128;
var h = 128;
var can = document.getElementById("canvas");
var ctx = can.getContext('2d');
can.width = w;
@gabonator
gabonator / garmin_hud_2.cpp
Last active June 22, 2016 13:20
Garmin HUD protocol
CString Hex(int n)
{
CString str;
str.Format( _T("%02x"), n );
return str;
}
void SendHud(unsigned char* pBuf, int nLen)
{
CArray<int> arrPacket;
@gabonator
gabonator / updater_server.php
Created April 24, 2014 16:32
IP9100/Yoics frame grabber/uploader running on router wl500g premium (linux)
<?
$post = file_get_contents('php://input');
if ( strlen($post) > 10 )
{
file_put_contents("cam", $post);
die();
}
if ( $_SERVER["QUERY_STRING"] == "" )
{
?>
@gabonator
gabonator / build.bat
Created July 22, 2014 13:42
Microsoft Visual Studio - commandline build
@echo off
set VC=%VS80COMNTOOLS%\..\..\VC
call "%VC%\vcvarsall.bat"
set path=%VC%\bin\;%VC%\..\Common7\IDE\
set include=%VC%\include\;%VC%\PlatformSDK\Include\
set lib=%VC%\PlatformSDK\Lib\;%VC%\lib\
@gabonator
gabonator / ApplicationSDK.cpp
Created April 27, 2015 09:59
Hopper test pre Auru
class CJsFunctions
{
struct TTimer
{
INT nShots;
CString strCall;
INT lLast;
INT lInterval;
DWORD dwId;
};
@gabonator
gabonator / dirlist.txt
Created May 7, 2015 09:21
Imagemagick scaling scripts (VBS)
attrib *.*
A GuiOverlay\traffic2\10loading(1).png
H GuiOverlay\traffic2\10loading(1).png.mftc
H GuiOverlay\traffic2\10loading(1).png.size
A GuiOverlay\traffic2\10loading(2).png
H GuiOverlay\traffic2\10loading(2).png.mftc
H GuiOverlay\traffic2\10loading(2).png.size
A GuiOverlay\traffic2\10loading(3).png
H GuiOverlay\traffic2\10loading(3).png.mftc
@gabonator
gabonator / index.html
Created May 22, 2015 11:44
Sygic aura gps emulator
<html>
<head>
<title>Night rider</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100%; width:100%}
body { width:100%; height: 100%; margin: 0; padding: 0 }
#map-canvas { width:100%; height: 100%; z-index:2}
#map-canvas-small {
position:absolute; width:300px; height:300px; right:100px; top:100px; z-index:5;