Skip to content

Instantly share code, notes, and snippets.

View aikar's full-sized avatar
:atom:
Powered by Steak

Daniel Ennis aikar

:atom:
Powered by Steak
View GitHub Profile
#showtooltip Vanish
/console Sound_EnableSFX 0
/cast Cloak of Shadows
/cast Sprint
/cast Vanish
/console Sound_EnableSFX 1
/script UIErrorsFrame:Clear()
Date: 2010-10-16 01:41:20
ID: 10
Error occured in: Global
Count: 1
Message: ..\AddOns\IceHUD\IceBarElement.lua line 1071:
attempt to index field '?' (a nil value)
Debug:
(tail call): ?
IceHUD\IceBarElement.lua:1071: UpdateBar()
IceHUD\IceUnitBar.lua:281: UpdateBar()
Message: Error: AddOn Ace3 attempted to call a forbidden function (CancelUnitBuff()) from a tainted execution path.
Debug:
[C]: CancelUnitBuff()
..\FrameXML\ChatFrame.lua:1069: ?()
..\FrameXML\ChatFrame.lua:4088: ChatEdit_ParseText()
..\FrameXML\ChatFrame.lua:3717: ChatEdit_SendText()
..\FrameXML\ChatFrame.lua:3755: ChatEdit_OnEnterPressed()
[string "*:OnEnterPressed"]:1:
[string "*:OnEnterPressed"]:1
AddOns:
// ==UserScript==
// @name WoW AH Easy Cancel
// @namespace aikar
// @include http://www.wowarmory.com/auctionhouse/*
// ==/UserScript==
unsafeWindow.Auction.openCancel = function(id)
{
unsafeWindow.Auction.cancel(id,new Image(0,0));
}
/*
* Node Network Protocol Parser
* https://github.com/miksago/ideabin/wiki/Node-Network-Protocol
*/
function NNPParser(readStream, callback)
{
var self = this;
if(callback) self.addListener('msg', callback);
var buffer = '';
var
nnpp = require('./dataparser'),
net = require('net'),
stdin = process.openStdin();
net.createServer(function(conn)
{
nnpp(conn, function(line)
{
console.log("Got line: <" + line + ">");
var path = require('path');
var netBindings = process.binding('net');
var net = require('net');
var child_process = require('child_process');
var fs = require('fs');
var sys = require('sys');
var Worker = require('webworker').Worker;
NUM_WORKERS = 8;
#!/usr/bin/env node
//CLI Script for starting apps
var args = process.argv,
exec = require('child_process').exec,
util = require('util'),
daemonize = require('fork').daemonize;
if(args[2] == 'start' && args[3])
{
require('./app/' + args[3]);
var fork = require('fork').fork;
var netBinding = process.binding('net');
var net = require('net');
var ppid = process.pid;
var workers = [];
function preforkServer(port, numWorkers, clientServer)
{
var srv = net.createServer(function(s) {
s.pause();
var hv = 0;
@aikar
aikar / preforkserver.js
Created November 23, 2010 22:06
Preforking TCP Server to take advantage of multiple CPU cores
(function(){
var fork = require('fork').fork;
var netBinding = process.binding('net');
var net = require('net');
var workers = [];
module.exports = preforkServer = function(port, numWorkers, clientServer)
{
net.createServer(function(s) {
s.pause();
var hv = 0;