Skip to content

Instantly share code, notes, and snippets.

View f4hy's full-sized avatar

Brendan Fahy f4hy

  • Bloomberg LP
  • NY NY
View GitHub Profile

Keybase proof

I hereby claim:

  • I am f4hy on github.
  • I am bmfahy (https://keybase.io/bmfahy) on keybase.
  • I have a public key whose fingerprint is 2A1A 7E6B B387 735F 3708 313B 3BB4 AFC5 6E44 F31A

To claim this, I am signing this object:

@f4hy
f4hy / gist:7e8965c33c7d0b714ac0
Created April 17, 2015 06:16
emacs package install error
Debugger entered--Lisp error: (wrong-number-of-arguments #[(ad--addoit-function package-list requirements) "\304\305 !\306 !\210
\304#\211)\207" [ad-return-value requirements ad--addoit-function package-list nil reverse print] 5] 4)
ad-Advice-package-compute-transaction(#[770 "\211\203I\211@\211@\211A@\262\302\211\2038\211@\303H>\204'\304\305\306\307#\210\310H=\2031\211\262A\266\202\202\210\211\203\215\311\303H>\204M\304\305\312\307#\210\313H\"\203r\211>\203e\314\315\316!\"\210\202\215\317 \"\262\302\262\202\215\304\320\321!\321\303H>\204\207\304\305\312\307#\210\313H!$\210\211\204@\322\"\204@ \236A\302\211\203\204\211A\262\242\211\303H>\204\272\304\305\312\307#\210\211\313H\323\"\324 \"\203\333\304\325\n\321 !\321!$\210\202\211\203\377\204\211;\203\365\326\327\n\321\f!$\202\372\326\330\n\"\262\202\262\266\202\236\204!\211\203\304\331\"\210\202!\304\332\321!#\210\333\fB\303H>\2044\304\305\334\307#\210\33
execute *2
whirlwind *2
fiery war axe *2
armorsmith *2
cruel task master *2
shield block *2
acolyte of pain *2
spider tank *2
arathi weaponsmith *2
chilwind yeti
#!/bin/sh
#
# WeMo Control Script
#
# rich@netmagi.com
#
# Usage: ./wemo_control IP_ADDRESS ON/OFF/GETSTATE/GETSIGNALSTRENGTH/GETFRIENDLYNAME
#
#
IP=$1
@f4hy
f4hy / gist:6043854
Created July 20, 2013 04:23
My system information for Dota2 bug report
OS: Arch linux
Window Manager: i3
Graphics Card: Nvidia 460GTX, proprietary drivers :-(
Resolution: 1920x1080 (borderless window)
Audio Stack: Pulse
CPU: i5-3570
filelogLevel = logging.DEBUG
STDlogLevel = logging.WARNING
class ContextFilter(logging.Filter):
def filter(self, record):
record.tick = ModusCommander.tickcount
return True
filehandler = self.log.handlers[0]
def issuesafe(self, command, bot, target=None, facingDirection=None, lookAt=None, description=None, group=None):
if target:
safetarget = self.level.findNearestFreePosition(target)
self.needsorders.discard(bot)
if bot.name in self.moved_this_turn:
self.log.warn("do not issue order to {}, already issued this turn, passing".format(bot.name))
return
self.moved_this_turn.add(bot.name)
if bot.state is bot.STATE_SHOOTING: