Skip to content

Instantly share code, notes, and snippets.

View lbjay's full-sized avatar

Jay Luker lbjay

View GitHub Profile
System: Host: jluker-Latitude-E7440 Kernel: 3.13.0-24-generic x86_64 (64 bit, gcc: 4.8.2)
Desktop: Gnome Distro: Linux Mint 17 Qiana
Machine: System: Dell product: Latitude E7440 version: 01
Mobo: Dell model: 07F3F4 version: A00 Bios: Dell version: A09 date: 05/01/2014
CPU: Dual core Intel Core i7-4600U CPU (-HT-MCP-) cache: 4096 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10775.7
Clock Speeds: 1: 756.00 MHz 2: 756.00 MHz 3: 756.00 MHz 4: 2000.00 MHz
Graphics: Card: Intel Haswell-ULT Integrated Graphics Controller bus-ID: 00:02.0
X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: [email protected]
GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 10.1.3 Direct Rendering: Yes
Audio: Card-1: Intel Lynx Point-LP HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Pull Request on GitHub","action":{"@type":"ViewAction","url":"https://github.com/adsabs/bumblebee/pull/150","name":"View Pull Request"}}</script>
Bringing machine 'default' up with 'docker' provider...
==> default: Building the container from a Dockerfile...
default: Image: e7c5e7043c84
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Creating the container...
default: Name: vagrant_elastic_docker_default_1417033411
default: Image: e7c5e7043c84
default: Volume: /home/jluker/projects/vagrant_elastic_docker:/vagrant
default: Port: 2200:22
default:
/home/ec2-user/harvardedits/anon/node_modules/wikichanges/node_modules/irc/lib/parse_message.js:39
message.command = match[1];
^
TypeError: Cannot read property '1' of null
at parseMessage (/home/ec2-user/harvardedits/anon/node_modules/wikichanges/node_modules/irc/lib/parse_message.js:39:28)
at iterator (/home/ec2-user/harvardedits/anon/node_modules/wikichanges/node_modules/irc/lib/irc.js:753:27)
at Array.forEach (native)
at Socket.<anonymous> (/home/ec2-user/harvardedits/anon/node_modules/wikichanges/node_modules/irc/lib/irc.js:752:15)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:745:14)
# do not create a queue: section for your test environment
test:
adapter: postgresql
encoding: utf8
database: canvas_test
host: localhost
username: postgres
timeout: 5000
login: &login
@lbjay
lbjay / logstash.conf
Last active August 29, 2015 14:22
apache-elk-in-five-minutes logstash.conf
input {
tcp {
port => 3333
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
@lbjay
lbjay / harvard.js
Last active August 29, 2015 14:22
canvas styleguide foolery
$(document).ready(function(e) {
var harvardLogo = "<a class='harvardLogo' href='/'><img src='https://s3.amazonaws.com/tlt-static/canvas/branding/global/images/spacer.gif'></a>";
$('#header-inner').prepend(harvardLogo);
var harvardCopy = '<p>Copyright &copy; 2015 The President and Fellows of Harvard College</p>';
harvardCopy += '<p><a href="https://wiki.harvard.edu/confluence/display/canvas/Harvard+Privacy+Policy+for+Canvas" id="privacy_policy_link">Privacy Policy</a> | <a href="https://wiki.harvard.edu/confluence/display/canvas/Harvard+Acceptable+Use+Policy+for+Canvas" id="acceptable_use_policy_link">Acceptable Use Policy</a></p>';
$('footer').html(harvardCopy);
});
@lbjay
lbjay / harvard.css
Last active August 29, 2015 14:22
canvas styleguide css foolery
* {
font-family: "monospace";
}
a.name {
color: red;
}
@lbjay
lbjay / 0_reuse_code.js
Created December 15, 2015 16:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lbjay
lbjay / get_stack_name.py
Created February 1, 2016 16:28
Get opsworks stack name from agent config
import os
import boto3
from yaml import load
os.environ.setdefault('AWS_DEFAULT_REGION', 'us-east-1')
if __name__ == '__main__':
with open('/etc/aws/opsworks/instance-agent.yml') as f:
agent_config = load(f)