Skip to content

Instantly share code, notes, and snippets.

☕️
Working on the next great thing....

Tiramisu Mokka kofemann

☕️
Working on the next great thing....
Block or report user

Report or block kofemann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kofemann
kofemann / fix-chimera-bd.sql
Created Oct 14, 2019
chimera db missing procedure
View fix-chimera-bd.sql
CREATE OR REPLACE FUNCTION inumber2path(bigint, bigint) RETURNS varchar AS $$
DECLARE
inumber bigint := $1;
iroot bigint := $2;
path varchar := '';
entry record;
BEGIN
IF iroot = inumber
THEN
@kofemann
kofemann / poolmanager.conf
Created Oct 7, 2019
dCache's pool manager configuration for distributed site
View poolmanager.conf
psu set regex off
psu set allpoolsactive off
psu create unit -store *@*
psu create unit -net 0.0.0.0/0.0.0.0
psu create unit -net 10.17.7.0/24
psu create unit -net ::/0
psu create unit -protocol */*
psu create ugroup any-protocol
@kofemann
kofemann / root-io.ipynb
Last active Sep 22, 2019
ROOT in a Jupyter notebook
View root-io.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kofemann
kofemann / dcap-client-server.md
Created Jul 1, 2019
DCAP data channel wire protocol
View dcap-client-server.md

Overview

  • The Mover-Client connection is a binary connection which, TCP wise, may be initiated by either parties.
  • The mover starts the communication by sending the Mover HELLO BLOCK (see below).
  • All subsequent commands are initiated by the client.
  • The protocol is limited to synchronous request-reply communication. Therefore a command can only be issued after the previous command was completed.
  • The connection can either be in Command Mode, which is the initial mode, or in Data Transfer Mode.
  • Each command has to be acknowledged immediately by an REQUEST ACK. The REQUEST ACK reports the request state and in some cases additional, request dependent arguments . (e.g. LOCATE)
  • If the REQUEST ACK indicates success, the connection switches to Data Transfer Mode for READ and WRITE requests.
  • In Data Transfer Mode the data is send in DATA CHAINS ( see below).
@kofemann
kofemann / dcache-monitoring.md
Last active Jun 20, 2019
Reporting dCache java process CPU and Memory usage with beats
View dcache-monitoring.md

Reporting dCache CPU & Memory usage with metricbeats

Pre-requisites

  • Download and install Metricbeat. Use metricbeat-oss package, if you don't have xpack
  • Download Jolokia's JVM agent

Enable Jolokia JVM agent

@kofemann
kofemann / bio.md
Last active Jul 29, 2019
About Me in a nutshell.
View bio.md
  • 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 Mar 28, 2019
dcache configuration as openstack manila
View dcache-manila.md
[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 Jan 25, 2019
Dynamic plotting with Matplotlib in Jupiter notebook
View dcache-billing.ipynb
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 Dec 12, 2018
dump data in byte buffer
View Hexdump.java
import java.nio.ByteBuffer;
public class Hexdump {
public static void dumphex(long offset, ByteBuffer buffer) {
byte[] chunk = new byte[16];
while(buffer.hasRemaining()) {
You can’t perform that action at this time.