View luarocks.rb
require 'formula'
class Luarocks < Formula
homepage ''
stable do
url ''
sha256 '92c014889ec6a09c4bb492df6b7f7be784110d6abe031e16418342781ca5c5ce'

Keybase proof

I hereby claim:

  • I am mikz on github.
  • I am mikz ( on keybase.
  • I have a public key whose fingerprint is 7B3F AA6F 9D9F 7BF5 2D6B 446E AC7A FD01 282E CD85

To claim this, I am signing this object:

View jspm.rb
#!/usr/bin/env ruby
require 'open-uri'
require 'json'
require 'shellwords'
ENV['NODE_PATH'] = '/usr/local/lib/node_modules'
# npm install -g licenses
View resque-worker.conf
instance ${N}
kill timeout 10800 # 3 hours in seconds
setuid user
stop on stopping resque
env N
env QUEUE="*"
View docker.conf
description "Docker daemon"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
limit nofile 524288 1048576
limit nproc 524288 1048576
kill timeout 20
View codeclimate.rb
module CodeclimateRails
module Git
def info
committed_at: git_timestamp,
head: head,
branch: branch
View everyday.html
<html xmlns="" xml:lang="en">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.9" />
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
View gist:df306f511d40017c5375
class Result
attr_reader :object, :options
def initialize(object = nil, **options)
@object = object
@options = options
args = { value: true }
View gist:4ce4307329095114b109
--- bundle/nginx-1.7.4/src/event/ngx_event_openssl.c.orig 2014-09-10 23:33:09.000000000 +0200
+++ bundle/nginx-1.7.4/src/event/ngx_event_openssl.c 2014-09-10 23:33:49.000000000 +0200
@@ -498,6 +498,7 @@
SSL_CTX_set_verify_depth(ssl->ctx, depth);
if (cert->len == 0) {
+ SSL_CTX_set_default_verify_paths(ssl->ctx);
return NGX_OK;
View gist:adf676003bd0f5f456c4

The problem

curling through web services can be tedious without some basic pretty printing. Let's see how easy it is to create aliases for pretty printing json/xml formats with Python's pygments library and xmllint/jsonp.

The Solution

alias xml='xmllint --format - | pygmentize -l xml -O encoding=utf8'
alias json='jsonpp | pygmentize -l json -O encoding=utf8''

Then just curl\?v\=1 | xml or curl | json to get nice XML/JSON output.