Skip to content

Instantly share code, notes, and snippets.

View N3MIS15's full-sized avatar

David Gray N3MIS15

View GitHub Profile
@N3MIS15
N3MIS15 / gist:5403299
Created April 17, 2013 10:33
rom test hackery
#!/usr/bin/env python
#
# Copyright (C) 2013 Garrett Brown
# See Copyright Notice in rominfo.py
import testutils
import unittest
import os
import json
@N3MIS15
N3MIS15 / websock.html
Created November 29, 2012 09:06
Websocket XBMC keyboard remmote
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<title>XBMC Remote</title>
</head>
<body>
<h2>XBMC remote</h2>
@N3MIS15
N3MIS15 / laser_fan.scad
Created February 6, 2016 05:20
Laser fan mount
module 30fan() {
difference()
{
linear_extrude(height=11, center = true, convexity = 4, twist = 0)
difference()
{
square([30,30],center=true);
difference()
{
circle(r=28.5/2,center=true);
@N3MIS15
N3MIS15 / vacuum_laser_mount.scad
Last active December 12, 2020 19:56
Shopvac/Laser mount for my shapeoko
$fn=120;
spindle = 53;
vacuum = 37.2;
//%color("orange") rotate([0, 0, 90]) import("adapter_1_v1_0.stl");
translate([0, 0, 10]) color("red") {
%cylinder(r=spindle/2, h=90);
%translate([0, 0, -spindle]) cylinder(r=19/2, h=52);
padding = 0.3;
module bearing() {
cylinder(r=8+padding, h=12, center=true);
translate([0, 0, 6.5]) cylinder(r1=8+padding, r2=6, h=1, center=true);
}
module main() {
difference() {
union() {
@N3MIS15
N3MIS15 / gist:e0a46acece0b29ea5abf
Created May 11, 2014 11:16
remove from xbmc library
@app.route('/xhr/library_remove/<media>/<int:id>')
@requires_auth
def xhr_clear_playlist(media, id):
logger.log('CONTROLS :: Removing %s from XBMC library' % media, 'INFO')
xbmc = jsonrpclib.Server(server_api_address())
try:
if media == 'movie':
xbmc.VideoLibrary.RemoveMovie(movieid=id)
elif media == 'tvshow':
<!-- Joystick Name: OUYA Game Controller -->
<!-- Button Mappings in Windows: -->
<!-- -->
<!-- ID Button -->
<!-- -->
<!-- 1 O -->
<!-- 2 U -->
<!-- 3 Y -->
<!-- 4 A -->
@N3MIS15
N3MIS15 / addon.xml
Created April 28, 2013 22:31
test trakt addon rating
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.rate_test" version="0.0.1" name="Test Trakt Ratings" provider-name="N3MIS15">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.xbmcswift2" version="2.4.0" />
</requires>
<extension point="xbmc.python.pluginsource" library="plugin.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
#!/usr/bin/env python
#########################################################################
# Boblight config generator created by David Gray (N3MIS15) #
# Positioning is calculated starting at the middle bottom of screen #
# Only has barebone settings, any other setting should be set manually #
# Tested with adafruit 8806 LEDs and adalight #
#########################################################################
@N3MIS15
N3MIS15 / gist:4014351
Created November 4, 2012 23:27
macros biatch
{% macro button(a) %}
<a class="button addloading" data-xhr_url="{{a}}">{{a|title}}</a>
{% endmacro %}
{{button('intro')}}
{{button('modules')}}
{{button('search')}}
{{button('remote')}}
{{button('servers')}}
{{button('manage')}}