Skip to content

Instantly share code, notes, and snippets.

View gistya's full-sized avatar

Jon Gilbert gistya

  • Portland, OR
View GitHub Profile
@gistya
gistya / Bot Testing.json
Created February 13, 2013 23:43
A template to describe bot tests.
//Document format: JSON (kind of)
//Replace # with a numeric value.
//Replace $ inside of quotations with a string value.
//Replace <objectType> with appropriate object populated with values.
//Lastly remove all lines with "//" at the front and boom, JSON.
//Bot Deployment Object Template
//(<botDeploymentObject>):
{
"playerStatsWhenDeployed":<playerStatsObject>,
@gistya
gistya / gist:5087224
Created March 5, 2013 01:15
Crash Log MIDI Server
Process: MIDIServer [1412]
Path: /System/Library/Frameworks/CoreMIDI.framework/Versions/A/MIDIServer
Identifier: MIDIServer
Version: 78.2
Code Type: X86 (Native)
Parent Process: launchd [290]
User ID: 503
Date/Time: 2013-03-04 17:11:44.402 -0800
OS Version: Mac OS X 10.8.2 (12C60)
@gistya
gistya / midicrashconsolemessages
Created March 5, 2013 01:16
Console Messages MIDI Crash
3/4/13 5:02:11.144 PM MIDIServer[1240]: MIDIServer [1240] starting; arch=x86_64
3/4/13 5:02:11.148 PM MIDIServer[1240]: PlugIn DigidesignFireWireMIDI.plugin -- file://localhost/Library/Audio/MIDI%20Drivers/ does not contain a supported architecture.
3/4/13 5:02:11.148 PM MIDIServer[1240]: MIDIServer relaunching because a 32-bit driver was found
3/4/13 5:02:11.160 PM MIDIServer[1240]: MIDIServer [1240] starting; arch=i386
[B]3/4/13 5:02:11.000 PM kernel[0]: Data/Stack execution not permitted: MIDIServer[pid 1240] at virtual address 0x1ee9000, protections were read-write
[/B]3/4/13 5:02:11.766 PM com.apple.launchd.peruser.503[290]: (com.apple.midiserver[1240]) Job appears to have crashed: Bus error: 10
3/4/13 5:02:11.766 PM com.apple.launchd.peruser.503[290]: (com.apple.midiserver) Throttling respawn: Will start in 10 seconds
3/4/13 5:02:11.883 PM ReportCrash[1235]: Saved crash report for MIDIServer[1240] version 78.2 to /Users/qwerqwer/Library/Logs/DiagnosticReports/MIDIServer_2013-03-04-170211_Cheese-Master.c
@gistya
gistya / DigiCoreAudoServerSandboxd
Created March 5, 2013 01:24
Full Report from SandboxD blocking DigiCoreAudioServer
WebProcess(950) deny mach-lookup DigiCoreAudioServer
Process: WebProcess [950]
Path: /System/Library/StagedFrameworks/Safari/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Load Address: 0x10d126000
Identifier: com.apple.WebProcess
Version: 8536.26.17 (8536)
Build Info: 1-WebKit2~7536026017000000
Code Type: x86_64 (Native)
Parent Process: Safari [948]
@gistya
gistya / DigiCoreAudioServer
Created March 5, 2013 01:27
3/4/13 4:50:11.995 PM sandboxd[1022]: ([950]) WebProcess(950) deny file-read-data /Applications/Digidesign/Digi CoreAudio Manager.app Full report:
WebProcess(950) deny file-read-data /Applications/Digidesign/Digi CoreAudio Manager.app
Process: WebProcess [950]
Path: /System/Library/StagedFrameworks/Safari/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Load Address: 0x10d126000
Identifier: com.apple.WebProcess
Version: 8536.26.17 (8536)
Build Info: 1-WebKit2~7536026017000000
Code Type: x86_64 (Native)
Parent Process: launchd [1]
@gistya
gistya / buggy lsl sha1 output
Created May 15, 2013 17:30
Debugging of hmac-sha1
Object: HexToString: hash to be converted = F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
Object: HexToString: result of conversion= ðñòóôõö÷øùúûüýþÿ
Object: HexToString: hash to be converted = E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF
Object: HexToString: result of conversion= àáâãäåæçèéêëìíîï
Object: HexToString: hash to be converted = D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF
Object: HexToString: result of conversion= ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß
Object: HexToString: hash to be converted = C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF
Object: HexToString: result of conversion= ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
Object: HexToString: hash to be converted = B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF
Object: HexToString: result of conversion= °±²³´µ¶·¸¹º»¼½¾¿
@gistya
gistya / LSLBase64HMAC-SHA1Fast
Created May 26, 2013 19:24
Gistya Eusebio's peed-optimized version of Pedro Oval's Base64 HMAC-SHA1 algorithm for Second Life LSL.
list comp;
string K; //GET FROM NOTECARD OR SET HERE
string K64;
string hexc="0123456789ABCDEF";
//THE BELOW HASHING ROUTINES ARE BY PEDRO OVAL WITH OPTIMIZATIONS BY GISTYA EUSEBIO (MAY 2013)
string hx264u(string a) {
integer i = 0; integer len = llStringLength(a += "0000") - 4; string res = "";
while (i < len) {
res += llGetSubString(llIntegerToBase64(4*(integer)("0x" + llGetSubString(a, i, i+5))), 1, 4);
i += 6; }
@gistya
gistya / jsonUtils.lsl
Created June 22, 2013 06:11
Some util functions to help with LSL scripting using JSON
//JSON_TYPE integers
integer invalid = 1; //invalid
integer object = 2; //object
integer array = 4; //array
integer number = 8; //number
integer str = 16; //string
integer null = 32; //null
integer true = 64; //true
integer false = 128; //false
@gistya
gistya / iphoneWontBoot
Created July 1, 2013 13:37
console output
========================
ASL is here to serve you
>
Jul 1 06:33:43 apsd[83] <Warning>: 2013-07-01 06:33:43 -0700 apsd[83]: <APSCourier: 0x14568410>: forceDelayedReconnect.
Jul 1 06:33:43 apsd[83] <Warning>: 2013-07-01 06:33:43 -0700 apsd[83]: <APSCourierConnection: 0x1466bd90> asked to resumeManager with action 5 with invalid interface None
Jul 1 06:33:43 apsd[83] <Warning>: 2013-07-01 06:33:43 -0700 apsd[83]: copyTokenForDomain push.apple.com (null)
Jul 1 06:33:43 apsd[83] <Warning>: 2013-07-01 06:33:43 -0700 apsd[83]: <APSCourier: 0x14568410> adding connectionserver <APSConnectionServer: 0x14586ce0>, setting publicToken:(null)
Jul 1 06:33:44 apsd[83] <Warning>: 2013-07-01 06:33:44 -0700 apsd[83]: copyTokenForDomain push.apple.com (null)
Jul 1 06:33:44 apsd[83] <Warning>: 2013-07-01 06:33:44 -0700 apsd[83]: Do we need to enable the courier? needToken YES _hasEnabledCouriers NO
@gistya
gistya / BundlePricesPatchFileChanges.diff
Created April 23, 2014 01:11
BundlePricesPatchFileChanges.diff: patch the local overrides of Bundle pricing so that the Special Price is a set amount and not a percentage
From 87668bb649fc84d8103714d296d294b183835fc6 Mon Sep 17 00:00:00 2001
From: Gistya Eusebio <gistya@gmail.com>
Date: Tue, 22 Apr 2014 18:09:13 -0700
Subject: [PATCH] patch the local overrides of Bundle pricing so that the
Special Price is a set amount and not a percentage
---
.../Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes/Special.php | 6 ++++--
app/code/local/Mage/Bundle/Model/Product/Price.php | 5 +++--
app/code/local/Mage/Bundle/Model/Resource/Indexer/Price.php | 4 ++--