Skip to content

Instantly share code, notes, and snippets.

View corbanmailloux's full-sized avatar

Corban Mailloux corbanmailloux

View GitHub Profile
@corbanmailloux
corbanmailloux / GRBL A5 Laser Config
Created March 26, 2016 22:20
GRBL A5 Laser Config
$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=0 (dir port invert mask:00000000)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.010 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
@corbanmailloux
corbanmailloux / FileBot TV Naming.groovy
Last active October 22, 2017 03:19
FileBot TV Naming
// TV
{['M:', 'P:', 'T:', 'U:'].collect{ (it+'/Media/TV/'+n.sortName('$2, $1').replace(':',' -')) as File }.sort{ a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/
{episode.special ? 'Specials' : 'Season ' + s.pad(2)}/{n.sortName('$2, $1').replace(':',' -')} - {episode.special ? 'S00E'+special.pad(2) : S00E00} - {t.replace(':',' -').replace('?', '')}
// New TV, with pooled drive D:
// Very similar to: D:/Media/TV/{plex.tail}
D:/Media/TV/{n.sortName('$2, $1').replace(':',' -')}/{episode.special ? 'Specials' : 'Season ' + s.pad(2)}/{n.sortName('$2, $1').replace(':',' -')} - {episode.special ? 'S00E'+special.pad(2) : S00E00} - {t.replace(':',' -').replace('?', '')}
// Movie
{sdhd == "SD" ? 'Q:/Media/Movies/000 - Non-HD' : ['Q:', 'S:', 'T:', 'U:'].collect{ (it+'/Media/Movies/') as File }.sort{ a, b -> a.diskSpace <=> b.diskSpace }.last()}/{n.sortName('$2, $1').replace(':',' -').replace('?', '')} ({y}) {'['+vf+']'}
@corbanmailloux
corbanmailloux / Car___Speed_Volume.prj.xml
Created January 20, 2016 16:27
Tasker - Speed-based Volume Control Project
<TaskerData sr="" dvi="1" tv="4.8m">
<Profile sr="prof9" ve="2">
<cdate>1413471371610</cdate>
<edate>1453307010034</edate>
<flags>8</flags>
<id>9</id>
<mid0>5</mid0>
<mid1>6</mid1>
<nme>Car</nme>
<State sr="con0" ve="2">
@corbanmailloux
corbanmailloux / RIT Mobile Bus Information.py
Created October 27, 2015 04:32
[OUTDATED] Uses RIT's mobile REST API to get bus information. This API is no longer available. :(
import requests
from datetime import datetime, timezone
def main():
"""
r = requests.get("https://m.rit.edu/rest/transit/routes")
for route in r.json()["response"]:
print(route["title"] + " -- " + str(route["running"]))
"""
@corbanmailloux
corbanmailloux / MKVMerge SRT.sh
Created September 25, 2015 01:15
Loop through a folder, merge SRT files with MP4s and make a MKV.
for i in *.mp4
do
i="${i%.mp4}"
"C:\Program Files\MKVToolNix\mkvmerge.exe" -o "$i.mkv" --default-track 0 --language 0:eng "$i.srt" "$i.mp4"
done
@corbanmailloux
corbanmailloux / Spanish.ahk
Created February 20, 2015 03:51
Spanish Keyboard Mapping
; Spanish Accents
/*
Insert Spanish accents within 3 seconds of pressing hotkey.
á Á é É í Í ó Ó ú Ú ñ Ñ ¿ ¡
hotkey = '
hotkey "a" = "á"
@corbanmailloux
corbanmailloux / Volume Mouse Wheel.ahk
Created January 21, 2015 15:31
Add volume macros to a normal mouse.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#WheelUp::Send, {Volume_Up}
#WheelDown::Send, {Volume_Down}
MButton & WheelUp::Send, {Volume_Up}
@corbanmailloux
corbanmailloux / Edelweiss.txt
Created December 8, 2014 18:21
Roomba Songs
128
130
132
140 0 13 59 64 62 32 69 96 67 64 62 32 60 96 59 64 59 32 59 32 60 32 62 32 64 96 62 96
140 1 13 59 64 62 32 69 96 67 64 62 32 60 96 59 64 62 32 62 32 64 32 66 32 67 96 67 96
140 2 15 69 40 62 24 62 32 66 32 64 32 62 32 59 64 62 32 67 96 64 64 67 32 69 64 67 32 66 96 62 96
141 0
141 1
@corbanmailloux
corbanmailloux / Default (Windows).sublime-keymap
Last active August 29, 2015 14:10
My Sublime Text Keymap
[
{ "keys": ["f5"], "command": "revert"},
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
]
@corbanmailloux
corbanmailloux / ARDroneSheetsImport.gs
Last active August 29, 2015 14:04
Import AR.Drone Academy Flight Data to Google Sheets
function onOpen() {
SpreadsheetApp.getUi()
.createMenu("AR.Drone Academy")
.addItem("Import New Flight", "flightNumPrompt")
.addToUi();
}
function flightNumPrompt() {
var ui = SpreadsheetApp.getUi(); // Same variations.