Skip to content

Instantly share code, notes, and snippets.

View cromulus's full-sized avatar

Bill Cromie cromulus

View GitHub Profile
@cromulus
cromulus / gist:c5d5e84b29ca7e47efee
Created July 7, 2014 13:49
Ethan's Ruby Warrior
class Player
attr_accessor :previous_health
def play_turn(warrior)
#warrior.walk!(:forward)
if warrior.health < 15 and warrior.feel.empty?
warrior.rest!
elsif warrior.feel.empty?
warrior.walk!(:forward)
else
warrior.attack!(:forward)
@bp.route('lang',methods=['GET'])
def GET_lang():
"""
Returns the language requested by the browser
defaults to en-US
"""
try:
headers = self.request.headers
return headers['Accept-Language'] || "en-US,en;q=0.8"
except Exceptions as e:
Feb 24 10:25:11 sd0 dkim-filter[5737]: 40D47E3A759 external host sd3 attempted to send as mailer.headliner.fm
Feb 24 10:25:11 sd0 postfix/smtpd[2150]: connect from sd3[10.16.243.132]
Feb 24 10:25:11 sd0 postfix/smtp[2454]: 0F8C7E3A74D: to=<ceceluvsyou@hotmail.com>, relay=mx3.hotmail.com[65.55.92.168]:25, delay=0.23, delays=0.06/0/0.1/0.07, dsn=5.0.0, status=bounced (host mx3.hotmail.com[65.55.92.168] said: 550$
Feb 24 10:25:11 sd0 postfix/smtpd[2150]: 49626E3A762: client=sd3[10.16.243.132]
Feb 24 10:25:11 sd0 postfix/cleanup[2140]: 49626E3A762: message-id=<4b8552e745190_1ca94da92c1c2@sd03.headliner.fm.tmail>
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
# Log to syslog
Syslog yes
# Required to use local socket with MTAs that access the socket as a non-
# privileged user (e.g. Postfix)
UMask 108
# Sign for example.com with key in /etc/mail/dkim.key using
# selector '2007' (e.g. 2007._domainkey.example.com)
Domain mailer.headliner.fm
KeyFile /etc/mail/domainkey.key
Selector 2007
Received: by 10.213.10.67 with SMTP id o3cs162154ebo;
Tue, 23 Feb 2010 15:36:13 -0800 (PST)
Received: by 10.101.2.4 with SMTP id e4mr11483211ani.49.1266968172434;
Tue, 23 Feb 2010 15:36:12 -0800 (PST)
Return-Path: <no-reply@mailer.headliner.fm>
Received: from mailer.headliner.fm (mailer.headliner.fm [208.43.54.60])
by mx.google.com with ESMTP id 1si6761025gxk.9.2010.02.23.15.36.11;
Tue, 23 Feb 2010 15:36:12 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of no-reply@mailer.headliner.fm designates 208.43.54.60 as permitted sender) client-ip=208.43.54.60;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of no-reply@mailer.headliner.fm designates 208.43.54.60 as permitted sender) smtp.mail=no-reply@mailer.headliner.fm
Feb 24 10:25:11 sd0 dkim-filter[5737]: 754AAE3A740 external host sd3 attempted to send as mailer.headliner.fm
Feb 24 10:25:11 sd0 postfix/smtpd[2150]: connect from sd3[10.16.243.132]
Feb 24 10:25:11 sd0 postfix/smtp[2251]: DBE7AE3A75F: to=<theendofwar@yahoo.com>, relay=g.mx.mail.yahoo.com[98.137.54.238]:25, conn_use=4, delay=0.61, delays=0.06/0/0.09/0.46, dsn=2.0.0, status=sent (250 ok dirdel)
Feb 24 10:25:11 sd0 postfix/qmgr[6423]: DBE7AE3A75F: removed
@cromulus
cromulus / keybase.md
Last active September 22, 2015 17:48

Keybase proof

I hereby claim:

  • I am cromulus on github.
  • I am bcromie (https://keybase.io/bcromie) on keybase.
  • I have a public key whose fingerprint is 2E8D 69FA 9C61 3487 EB49 BE02 6BFC A720 006A B2DE

To claim this, I am signing this object:

@cromulus
cromulus / gist:947343
Created April 28, 2011 21:08
heatmap.js issues on chrome, getting
data={"vals":[{"x":"473","y":"13"},{"x":"473","y":"13"},{"x":"92","y":"154"},{"x":"92","y":"154"},{"x":"91","y":"135"},{"x":"91","y":"135"},{"x":"86","y":"96"},{"x":"86","y":"96"},{"x":"123","y":"75"},{"x":"123","y":"75"},{"x":"105","y":"81"},{"x":"105","y":"81"},{"x":"101","y":"82"},{"x":"101","y":"82"},{"x":"82","y":"98"},{"x":"82","y":"98"},{"x":"80","y":"107"},{"x":"80","y":"107"},{"x":"80","y":"123"},{"x":"80","y":"123"},{"x":"82","y":"169"},{"x":"82","y":"169"},{"x":"84","y":"220"},{"x":"84","y":"220"},{"x":"85","y":"226"},{"x":"85","y":"226"},{"x":"85","y":"224"},{"x":"85","y":"224"},{"x":"87","y":"167"},{"x":"87","y":"167"},{"x":"91","y":"140"},{"x":"91","y":"140"},{"x":"104","y":"103"},{"x":"104","y":"103"},{"x":"104","y":"103"},{"x":"104","y":"103"},{"x":"1177","y":"45"},{"x":"1177","y":"45"},{"x":"1177","y":"93"},{"x":"1177","y":"93"},{"x":"1184","y":"101"},{"x":"1184","y":"101"},{"x":"1222","y":"141"},{"x":"1222","y":"141"},{"x":"1237","y":"198"},{"x":"1237","y":"198"},{"x":"1173","y":"333"},{"x":
@cromulus
cromulus / elasticsearch.conf
Created February 18, 2012 05:14 — forked from rbscott/elasticsearch.conf
upstart job for elastic search
# ElasticSearch Service
description "ElasticSearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]