I hereby claim:
- I am stillalex on github.
- I am stillalex (https://keybase.io/stillalex) on keybase.
- I have a public key ASBKLt6xBBpZupBfguutwSzPlJqDCRGKjZO9mJitTEdCqwo
To claim this, I am signing this object:
#!/bin/bash | |
count=${1:-100} | |
delay=${2:-1} # defaults to 1 second | |
ts=$(date +"%Y%m%d%H%M") | |
while [ $count -gt 0 ]; do | |
printf "==== Compaction run $count ====\n" | |
printf "Start: $(date)\n" >> compaction.$ts.$count.log |
import org.apache.jackrabbit.oak.spi.commit.CommitInfo | |
import org.apache.jackrabbit.oak.spi.commit.EmptyHook | |
import org.apache.jackrabbit.oak.spi.state.NodeState | |
import org.apache.jackrabbit.oak.spi.state.NodeBuilder | |
class LibsCleaner { | |
def session | |
def scanBundles(remove = false) { |
import java.util.concurrent.atomic.AtomicInteger | |
import org.apache.jackrabbit.oak.api.Type | |
import org.apache.jackrabbit.oak.plugins.segment.SegmentBlob | |
import org.apache.jackrabbit.oak.spi.state.NodeState | |
def countNodes(NodeState n, String path = "/", Integer flush = 1000000, Long warnAt = 1000, AtomicInteger count = new AtomicInteger(0), AtomicInteger binaries = new AtomicInteger(0), root = true) { | |
if(root) { | |
println "Counting nodes in tree ${path}" | |
} |
I hereby claim:
To claim this, I am signing this object: