Skip to content

Instantly share code, notes, and snippets.

View edmundoa's full-sized avatar

Edmundo Alvarez edmundoa

View GitHub Profile
@edmundoa
edmundoa / gist:a5bad160026c0f2c230e
Created January 21, 2015 16:57
Rickshaw #461 workaround
// Rickshaw issue: https://github.com/shutterstock/rickshaw/issues/461
// Original code: https://github.com/Graylog2/graylog2-web-interface/blob/master/app/assets/javascripts/rickshaw-helper.js
SmartResolutionBarRenderer = Rickshaw.Class.create(Rickshaw.Graph.Renderer.Bar, {
defaults: function($super) {
var defaults = Rickshaw.extend( $super(), {
gapSize: 0.05,
unstack: false,
resolution: 'minute'
} );

Keybase proof

I hereby claim:

  • I am edmundoa on github.
  • I am edmundoa (https://keybase.io/edmundoa) on keybase.
  • I have a public key whose fingerprint is A2CA 5740 C07A 7366 90AC 5C4D B9EF 916F 38F9 7D2D

To claim this, I am signing this object:

@edmundoa
edmundoa / gist:7944063
Created December 13, 2013 13:16
Log into graylog2-server 0.20.0-preview.8 with an AD account.
2013-12-13 10:47:09,990 DEBUG: org.graylog2.security.realm.GraylogSimpleAccountRealm - Retrieving authentication info for user edmundo.alvarez
2013-12-13 10:47:09,991 DEBUG: org.graylog2.security.ShiroAuthenticationFilter - Unable to authenticate user.
org.apache.shiro.authc.AuthenticationException: Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by
any configured realms. Please ensure that at least one realm can authenticate these tokens.
at org.apache.shiro.authc.pam.AtLeastOneSuccessfulStrategy.afterAllAttempts(AtLeastOneSuccessfulStrategy.java:54)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:235)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)
at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
at org.apache.shiro.mgt.AuthenticatingSecuri