Skip to content

Instantly share code, notes, and snippets.

@chetanmeh
chetanmeh / classLoaderLeakAnalyzer.js
Last active January 21, 2020 12:52
Following scripts looks for Classloading Leak suspects for OSGi env. This script needs to be executed from the OQL editor of JHat
var debugEnabled = false
var infoEnabled = true
var traceEnabled = false
//Maximum number of live paths to determine when a leak object is found
var maxPathsToFound = 1
//No of object instances after which a progress message
//is logged
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active September 25, 2024 09:03
A badass list of frontend development resources I collected over time.
@jakeonrails
jakeonrails / Ruby Notepad Bookmarklet
Created January 29, 2013 18:08
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@chetanmeh
chetanmeh / MultiplexingAuthorizableAction.java
Created October 19, 2012 14:42
DS sample to manage multiple references (SLING-2575)
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentSkipListMap;
import javax.jcr.*;
import org.apache.felix.scr.annotations.*;
import org.apache.jackrabbit.api.security.user.*;
import org.apache.jackrabbit.core.security.user.action.AbstractAuthorizableAction;