Skip to content

Instantly share code, notes, and snippets.

View kofemann's full-sized avatar
Working on the next great thing....

Tiramisu Mokka kofemann

Working on the next great thing....
View GitHub Profile
@kofemann
kofemann / bio.md
Last active July 29, 2019 21:02
About Me in a nutshell.
  • Working hard to solve complex problems
  • Developing distributed (storage) systems
  • Contributing to many OSS projects
  • Consuming coffee
  • Java, C, Go, Python ... UNIX

Fun with Pinned gists

@kofemann
kofemann / dcache-manila.md
Last active March 28, 2019 16:17
dcache configuration as openstack manila
[DEFAULT]
enabled_share_backends = dcache
enabled_share_protocols = NFS

[dcache]
share_backend_name = dCache
driver_handles_share_servers = False
share_driver = manila.share.drivers.dcache.dcache.DCacheShareDriver
dcache_api_url = https://dcache-lab007:3333
@kofemann
kofemann / dcache-billing.ipynb
Last active January 25, 2019 12:42
Dynamic plotting with Matplotlib in Jupiter notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kofemann
kofemann / Hexdump.java
Last active December 12, 2018 17:34
dump data in byte buffer
import java.nio.ByteBuffer;
public class Hexdump {
public static void dumphex(long offset, ByteBuffer buffer) {
byte[] chunk = new byte[16];
while(buffer.hasRemaining()) {
@kofemann
kofemann / dcap-protocol.md
Last active August 1, 2018 15:52
Disk Cache Access Protocol specification

dCache clinet access protocol DCAP

Basic definitions

DCAP client - door protocol:

  • is line based. Each line is expected to be sent and received atomicly.
  • The line can only contain ASCII characters.
  • A line consists of tokens. Tokens are separated by at least one blank character. Tokens containing blanks have to be quoted.
@kofemann
kofemann / docker-compose.yml
Created May 3, 2018 14:24 — forked from ju2wheels/docker-compose.yml
docker-compose reference YAML file with comments
# https://docs.docker.com/compose/yml/
# Each service defined in docker-compose.yml must specify exactly one of
# image or build. Other keys are optional, and are analogous to their
# docker run command-line counterparts.
#
# As with docker run, options specified in the Dockerfile (e.g., CMD,
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to
# specify them again in docker-compose.yml.
#
service_name:
@kofemann
kofemann / tuned.conf
Created April 20, 2018 07:47
tuned profile for dcache pools
#
# tuned configuration for dcache pools
#
[main]
summary=tuned configuration for dcache pools
[cpu]
governor=performance
energy_perf_bias=performance
@kofemann
kofemann / virtual-guest-nfs-client.conf
Created December 13, 2017 12:31
tuned profile for VM based nfs client
#
# tuned configuration
# /etc/tuned/virtual-guest-nfs-client/tuned.conf
#
[main]
summary=Optimize for running inside a virtual guest
include=throughput-performance
[sysctl]
@kofemann
kofemann / PnfsHandler.java
Last active August 9, 2017 20:45
BTrace script to catch source of clearCacheLocation message
import com.sun.btrace.annotations.*;
import static com.sun.btrace.BTraceUtils.*;
@BTrace
public class PnfsHandler {
@OnMethod(
clazz="diskCacheV111.util.PnfsHandler",
method="clearCacheLocation"
)
@kofemann
kofemann / code-guideline.md
Last active August 9, 2017 10:28
dCache code guideline

dCache code guideline

Spaces vs Tabs

dCache projects uses four (4) spaces indention. Some historic code still have mixed style. However, the newly written code must stick to spaces.