Skip to content

Instantly share code, notes, and snippets.

@csabahenk
csabahenk / 00README.md
Last active December 24, 2015 05:49
Utility script for publishing Markdown Extra documents as Gist

While Gist's markdown flavor is a superset of basic Markdown, it's not exactly the same as Markdown Extra.

To publish documents written in Markdown Extra as Gist so that it looks good:

  1. Convert the document to basic Markdown with Pandoc:

$ pandoc -f markdown -t markdown_strict ```

@csabahenk
csabahenk / multiple-acc-g4s.md
Created September 29, 2013 14:01
Multiple accounts per volume for Gluster for Swift
@csabahenk
csabahenk / 1-swift-pdb.md
Last active December 23, 2015 08:29
Swift and Pdb

Using Pdb with Swift does not work because Swift redirects stdin (even in foreground mode). Here we describe how to get it work.

  • apply attached patch on Swift source

  • wherever you'd call pdb.set_strace() do it like this:

from swift.common.utils import stdio_restore import pdb

@csabahenk
csabahenk / py-jsonfun.md
Last active December 22, 2015 20:39
Some fun with Python and JSON

Some fun with Python and JSON

This document will help you to introspect complex Python data.

Requirements

We need some JSON goodness to start with.

Required

@csabahenk
csabahenk / 00-Readme.md
Last active December 13, 2016 12:02
RFC: Filetree Schema Language

Filetree Schema Language is a format that's intended to make it easy to specify certain file tree layouts.

The idea is that the performance dataset tool (yet to be written) will be capable of producing actual file trees upon feeding it with a file tree schema.

I tried to addressed a good trade-off between versatility and simplicity.

Syntactically, this manifests in being based on JSON -- that's easy to write by humans while providing the processing utility with properly typed structural data. A lot of abbreviations are added to make writing easy and expressive (eg. you can specify the empty directory as "DIR" or {}, while the full form would be [ "DIR", {"entries": {} } ]).

@csabahenk
csabahenk / necrowitch.md
Last active December 15, 2015 08:59
A Buddha és a nekrofil boszorkány
@csabahenk
csabahenk / quickparsefuse.go
Created September 15, 2012 08:39
Quick printer (for glusterfs and github.com/csabahenk/strace-fusedump produced) FUSE dumps
package main
import (
"fmt"
"io"
"log"
"os"
"unsafe"
)
@csabahenk
csabahenk / Readme.md
Created December 9, 2011 02:26
Gist ripoff markdown server

This script spawns you a file server which serves markdown files (of .md extension) by rendering them to html. Might come handy if you are writing up something in markdown and want to check the work you've done.

It needs the github-markdown gem (gem install github-markdown).

@csabahenk
csabahenk / quine.sh
Created July 31, 2011 17:45
gist quine
curl -Ls http://gist.github.com/raw/1117010/quine.sh