View gist:5355277
1 2 3 4 5 6 7 8 9 10
ReverseProxySpec > accepts a base and target FAILED
Condition not satisfied:
 
proxy.base == "/somethingNotRight"
| | |
| | false
| | 12 differences (33% similarity)
| | /some(Ap)i(----------)
| | /some(th)i(ngNotRight)
| /someApi
View override.rb
1 2 3 4 5 6 7 8 9 10
class Parent
def some_overriden_method(a,b,c)
a + b + c
end
end
 
class Child < Parent
def some_overriden_method(*)
puts super
end
View gist:5164639
1 2 3 4 5 6 7 8 9 10
╰─ redis-cli -h ec2-54-234-243-184.compute-1.amazonaws.com -p 22121
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> get foo
"bar"
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> eval "return {KEYS[1]}" 1 foo
1) "foo"
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> set key1 key1
OK
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> set key2 key2
OK
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second
View gist:5156330
1 2 3 4 5 6 7 8 9 10
[2013-03-13T21:13:23+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This
 
Called from:
/var/lib/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/var/lib/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/node.rb:346:in `send'
/var/lib/gems/1.8/gems/chef-10.16.4/bin/../lib/chef/node.rb:346:in `method_missing'
View pseudo.java
1 2 3 4 5 6 7 8 9
// Make a sum and count variable
 
for (/* i from 0 to 2 */) {
// read user input
// add to sum
// increment count
}
 
//print sum and sum / count
View gist:5064531
1 2 3 4 5 6 7 8 9
╭─@schaffer2.local ~/code/knife-solo ‹ruby-1.9.3› ‹command-messaging›
╰─ rake
Run options: --seed 59003
 
# Running tests:
 
................................................F..................................
 
Finished tests in 0.496384s, 167.2093 tests/s, 269.9523 assertions/s.
View agent.js
1 2 3 4 5 6 7 8 9 10
/*jshint multistr:true */
var fs = require('fs'),
exec = require('child_process').exec,
path = require('path'),
os = require('os');
 
var Sentinel = require("node-sentinel"),
_ = require("underscore"),
async = require("async"),
nodemailer = require("nodemailer");
View redis_sub.rb
1 2 3 4 5 6 7
def subscribe_to_switch_master
redis.subscribe('+switch-master') do |on|
on.message do |channel, message|
reconfigure
end
end
end
View randomizer.py
1 2 3 4 5 6 7 8 9 10
import sys
import numpy as np
import matplotlib.pyplot as plt
import csv
 
with open('names.csv', 'rb') as csvfile:
csvreader = csv.reader(csvfile)
people = []
for row in csvreader:
people.append(row)
Something went wrong with that request. Please try again.