Skip to content

Instantly share code, notes, and snippets.

View mihail-dev's full-sized avatar

Mihail Ivanov mihail-dev

  • London, United Kingdom
View GitHub Profile
@mihail-dev
mihail-dev / Dockerfile
Created November 22, 2016 10:50
Docker image to execute groovy scripts
FROM ubuntu:xenial
RUN apt-get update -y && \
apt-get install -y groovy && \
mkdir /scripts
WORKDIR /scripts
@mihail-dev
mihail-dev / gfid-resolver.sh
Created October 17, 2016 16:07 — forked from louiszuckerman/gfid-resolver.sh
Glusterfs GFID Resolver Turns a GFID into a real path in the brick
#!/bin/bash
if [[ "$#" < "2" || "$#" > "3" ]]; then
cat <<END
Glusterfs GFID resolver -- turns a GFID into a real file path
Usage: $0 <brick-path> <gfid> [-q]
<brick-path> : the path to your glusterfs brick (required)