View gist:5470949
1 2 3 4 5
def myresolver = new URLResolver()
myresolver.m2compatible = true
myresolver.addArtifactPattern("http://artifacts.myrepo.com/myrepo-releases/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]")
myresolver.addIvyPattern("http://artifacts.myrepo.com/myrepo-releases/[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]")
resolver myresolver
View gist:5426910
1
org.springframework.web.client.ResourceAccessException: I/O error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
View gist:5366510
1 2 3 4 5 6 7 8 9
> java -cp ./bin/validate.jar x.alert.Validate input_file 1 ↵
Exception in thread "main" java.lang.NoClassDefFoundError: x/alert/Validate
Caused by: java.lang.ClassNotFoundException: x.alert.Validate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
View gist:5366490
1 2 3 4 5 6 7 8 9
╰─> java -cp ./bin/validate.jar x.alert.Validate input_file 1 ↵
Exception in thread "main" java.lang.NoClassDefFoundError: x/alert/Validate
Caused by: java.lang.ClassNotFoundException: x.alert.Validate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
View remove.js
1 2 3
$(".subscription-row:contains('someOrg')").each(function() {
$($(this).find('.minibutton')[0]).click();
});
View namespace_example.rb
1 2 3 4 5 6 7 8 9 10
# pipe/base.rb
module Pipe
class Base
def flow
end
end
end
 
# pipe/email_pipe.rb
require 'pipe/base'
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'
Something went wrong with that request. Please try again.