Disable unneeded services:
----- | |
-- Sync into dCache with dccp | |
-- usage: | |
-- lsyncd -nodaemon ldccp.lua | |
-- | |
dcap = { | |
maxProcesses = 32, | |
delay = 1, | |
action = function(inlet) |
#!/bin/sh | |
# | |
# post a series of patches into review board | |
# | |
# | |
MASTER=master | |
BRANCH="$(git symbolic-ref HEAD 2>/dev/null)" | |
BRANCH=${BRANCH##refs/heads/} |
public interface GuavaCacheMXBean { | |
public long getRequestCount(); | |
public long getHitCount(); | |
public double getHitRate(); | |
public long getMissCount(); |
import java.security.CodeSource; | |
public class find_jar { | |
public static void main(String[] args) throws Exception { | |
if (args.length != 1 ) { | |
System.err.println("Usage: find <class name>"); | |
System.exit(1); | |
} | |
Class c = Class.forName(args[0]); | |
CodeSource codeSource = c.getProtectionDomain().getCodeSource(); |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.locks.Condition; | |
import java.util.concurrent.locks.Lock; | |
/** | |
* A utility class to use locks with try-with-resource semantics: | |
* <pre> | |
* import static Locks.withLock; | |
* import Locks.AutoLock; | |
* |
{ | |
"title": "Billing", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "proto:gftp", | |
"alias": "GridFTP", | |
"color": "#7EB26D", | |
"id": 0, |
BEGIN { | |
avg = 0.0 | |
sigma = 0.0 | |
} | |
{ | |
v = $1 | |
avg = (avg*(NR - 1) + v) / NR | |
sigma = (sigma*(NR - 1) + v*v) / NR | |
} |
s = { | |
id = "9B3C1961-C7B7-4C03-AD92-D4AE6440655B", | |
internalName = "00-Pentax-k50", | |
title = "00-Pentax-k50", | |
type = "Develop", | |
value = { | |
settings = { | |
AutoLateralCA = 1, | |
ChromaticAberrationB = 0, | |
ChromaticAberrationR = 0, |
import java.util.Arrays; | |
public class Bitmap { | |
private final byte[] _bitmap; | |
public Bitmap(int size) { | |
_bitmap = new byte[size]; | |
} |