Skip to content

Instantly share code, notes, and snippets.

View lukaspustina's full-sized avatar

Lukas Pustina lukaspustina

View GitHub Profile

Keybase proof

I hereby claim:

  • I am lukaspustina on github.
  • I am lukaspustina (https://keybase.io/lukaspustina) on keybase.
  • I have a public key ASBLBiQ40VHjTbT9zIKKbQF-tUwc6rYc9oIXK_yBObi0FQo

To claim this, I am signing this object:

#!/bin/bash
OAUTH=$(cat ~/.pull_all_repos_from_org.oauth)
function pre_check() {
local res=0
local tools="jq curl git hub"
for tool in $tools; do
which -s $tool; let res=$res+$?
done
version: '2'
services:
opentsdb:
image: rheinwerk/opentsdb:opentsdb-2.2
ports:
- "4242:4242"
volumes:
- ./vol/data/hbase:/data/hbase
bosun:
image: rheinwerk/bosun:0.5.0-rc2
extern crate rustc_serialize;
use rustc_serialize::{Decodable, Encodable, json};
use rustc_serialize::json::Json;
#[derive(RustcDecodable, RustcEncodable, Debug)]
pub enum Message {
First {msg: FirstMsg},
Second {msg: SecondMsg}
}
colorscheme solarized
#!/usr/bin/python
import sys
from time import mktime, strptime
from datetime import datetime
threshold = 2000000000
# 116260 15:45:30.398605232 3 keepalived (10400) > sendmsg fd=13(<4r>192.168.205.8->224.0.0.18) size=40 tuple=0.0.0.0:112->224.0.0.18:0
def process_line(line):
import org.scalacheck._
import org.scalatest._
import org.scalatest.prop.GeneratorDrivenPropertyChecks
class SubsetGenerator(set: String*) {
protected val subsets = set.toSet.subsets.toSeq
val arbitrarySubsetGen: Gen[Set[String]] = for {
subset <- Gen.oneOf(subsets)
{
"builders": [{
"type": "qemu",
"format": "qcow2",
"headless": false,
"accelerator": "kvm",
"qemuargs": [
[ "-display", "none" ]
],
auto p2p1
iface p2p1 inet manual
bond-master bond1
auto p2p2
iface p2p2 inet manual
bond-master bond1
auto bond1
iface bond1 inet manual
<a id="back_fn_1"></a>Bla<sup><a href="#fn_1">1</a></sup> blupp
<h4>Footnotes</h4>
1. <a id="fn_1"></a>1. bla <a href="#back_fn_1">&crarr;</a>