Skip to content

Instantly share code, notes, and snippets.

Avatar

Gytis Ramanauskas gytisgreitai

  • TripCreator
  • Vilnius, Lithuania
View GitHub Profile
View leak.js
var restify = require('restify');
var server = restify.createServer();
var tasks = [];
server.pre(function(req, res, next) {
tasks.push(function() {
return req.headers;
});
@gytisgreitai
gytisgreitai / gist:6434201
Created Sep 4, 2013
DefaultMethodSecurityExpressionHandler with support for java.lang.Iterable
View gist:6434201
package org.example.security;
import java.lang.reflect.Array;
import java.util.*;
import org.springframework.expression.EvaluationContext;
import org.springframework.expression.Expression;
import org.springframework.security.access.PermissionCacheOptimizer;
import org.springframework.security.access.expression.ExpressionUtils;
import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler;
You can’t perform that action at this time.