Skip to content

Instantly share code, notes, and snippets.

View lukaspustina's full-sized avatar

Lukas Pustina lukaspustina

View GitHub Profile
#!/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

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:

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)
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}
}
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>
server {
listen 8080;
server_name docker-network-demo;
location / {
proxy_set_header X-Root-IP $remote_addr;
proxy_set_header X-Forward-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:18080
}
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
#!/usr/bin/python
###############################################################################
# Lukas Pustina
# This script takes a dictionary (one word by line) as well as multiple text
# files and checks how many words of these text files are part of the
# dictionary.
#
# Primary use is to analyse the quality of tesseract.
###############################################################################
# Example: