Skip to content

Instantly share code, notes, and snippets.

View ryanfitz's full-sized avatar

Ryan Fitzgerald ryanfitz

View GitHub Profile
T....GET_AVRINF...l
R....GET_AVRINF...{"Ifver":"00.08","DType":"Float","CoefWaitTime":{"Init":0,"Final":15000},"ADC":2.11500,"SysDelay":171,"EQType":"MultEQXT32","SWLvlMatch":true,"LFC":true,"Auro":true,"Upgrade":"None","CVVer":"00.01"}|
T....GET_AVRSTS....
R....GET_AVRSTS...{"HPPlug":false,"Mic":false,"AmpAssign":"11ch","AssignBin":"0C0401020001000002000000080000000000000000000000000000000202010202020001020304060A0800000301030000","ChSetup":[{"FL":"S"},{"C":"S"},{"FR":"S"},{"SLA":"S"},{"SRA":"S"},{"SBL":"S"},{"SBR":"S"},{"TFL":"S"},{"TFR":"S"},{"TRL":"S"},{"TRR":"S"},{"SWMIX1":"E"},{"SWMIX2":"E"},{"SWMIX3":"E"},{"SWMIX4":"E"}],"BTTXStatus":false,"SpPreset":"Both","SWSetup":{"SWNum":4,"SWMode":"Standard","SWLayout":"N/A"}}.
T....ENTER_AUDY...w
R.!..ENTER_AUDY...{"Comm":"ACK"}.
T....SET_SETDAT...{"AmpAssign":"11ch","AssignBin":"0C0401020001000002000000080000000000000000000000000000000202010202020001020304060A0800000301030000","SpConfig":[{"FL":"S"},{"C":"S"},{"FR":"S"},{"SLA":"S"},{"SRA":"S"},{"SBL":"S"},{"SBR
@ryanfitz
ryanfitz / gist:3e1e1bf691ff5b38243ce3b0a438a61b
Created April 13, 2025 20:50
oca sendAllFilters output
Calibration data below successfully loaded and will be transferred: {
versionEvo: 'p3.1',
tcName: 'tcNeuron 72.2dB',
bassFill: 0,
ocaTypeId: 'OCAFILE',
ocaVersion: 1,
title: 'Denon_AVR-X3800H_Basement_Theater_13-04-2025_13-49-39',
model: 'Denon AVR-X3800H',
ifVersionMajor: 10,
ifVersionMinor: 5,
@ryanfitz
ryanfitz / golang-nuts.go
Created December 2, 2012 22:45
two ways to call a function every 2 seconds
package main
import (
"fmt"
"time"
)
// Suggestions from golang-nuts
// http://play.golang.org/p/Ctg3_AQisl
@ryanfitz
ryanfitz / indexAccountsToCloudsearch.js
Created July 17, 2015 18:46
index dynamodb data to cloudsearch using AWS Lambda
var AWS = require('aws-sdk');
exports.handler = function(event, context) {
var cloudsearchdomain = new AWS.CloudSearchDomain({endpoint: 'doc-dev-cinch-accounts-ltmqj5gt5mjb5hg5eyqaf2v5hu.us-east-1.cloudsearch.amazonaws.com'});
var documents = event.Records.map(function(record) {
var data = {id : record.dynamodb.Keys.id.S};
if (record.eventName === 'REMOVE') {
data.type = 'delete'
@ryanfitz
ryanfitz / stitch_jade_compile.js
Created February 19, 2011 02:26
render jade templates on client side using stitch
var stitch = require('stitch');
var express = require('express');
options = {
paths : [__dirname + '/lib', __dirname + '/vendor'],
compilers: {
jade: function(module, filename) {
var jade = require('jade');
var source = require('fs').readFileSync(filename, 'utf8');
@ryanfitz
ryanfitz / header.swift
Created June 15, 2015 04:11
asdk header node workaround
func tableView(tableView: UITableView!, viewForHeaderInSection section: Int, delegate : PollHeaderNodeDelegate?) -> UIView! {
var view = tableView.dequeueReusableHeaderFooterViewWithIdentifier("Header") as? UITableViewHeaderFooterView
if view == nil {
view = UITableViewHeaderFooterView(reuseIdentifier: "Header")
}
view?.backgroundView = UIImageView()
let contentView = view!.contentView
@ryanfitz
ryanfitz / settings.json
Created February 11, 2013 16:38
transmission settings
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/mnt/BIGHUSK/torrents",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-limit-global": 240,
@ryanfitz
ryanfitz / dynamoLocal.js
Created November 23, 2015 14:07
connect vogels to local dynamo db instance
var opts = { endpoint : 'http://dynamodb-local:8000', apiVersion: '2012-08-10' };
var localDynamo new AWS.DynamoDB(opts);
vogels.dynamoDriver(localDynamo);
@ryanfitz
ryanfitz / PurchaseSchema.js
Last active October 24, 2015 02:41 — forked from Hmachalani/PurchaseSchema.js
Purchase Schema
var vogels = require('vogels'),
Joi = require('joi');
vogels.AWS.config.loadFromPath('./config.json');
var Purchase= vogels.define('Purchase', {
hashKey : 'uid',
rangeKey: 'tok',
// enable timestamps support
timestamps : true,
@ryanfitz
ryanfitz / tmux.conf
Created October 20, 2012 05:15
tmux config
set -g prefix C-a
unbind C-b
set -g default-terminal "screen-256color"
set -sg escape-time 1
# window and panes index
set -g base-index 1
setw -g pane-base-index 1