create table users(
id serial not null primary key,
username varchar(15) not null UNIQUE,
password text not null,
email text not null UNIQUE,
c_date timestamp default current_timestamp,full_name varchar(40) ,
status boolean not null default true,balance real not null default 0,
lastlogin timestamp not null default current_timestamp,
- General Background and Overview
- Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
- Models and Issues in Data Stream Systems
- Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
- Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
- [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get handle to build output | |
def config = new HashMap() | |
def bindings = getBinding() | |
config.putAll(bindings.getVariables()) | |
def out = config['out'] | |
for (aSlave in hudson.model.Hudson.instance.slaves) { | |
// check if executor is dead | |
execList = aSlave.getComputer().getExecutors() | |
for( exec in execList ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USAGE="Attach to Docker Container | |
-------------------------- | |
Attach to Docker Container even if the container does not run | |
ssh daemon. This is accomplished by using linux containers | |
directly via 'nsenter' (see http://bit.ly/docker_nsenter). | |
To install 'nsenter', just execute: | |
$ docker run -v /usr/local/bin:/target jpetazzo/nsenter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.8.3-alpine3.6 | |
RUN apk --no-cache add curl \ | |
&& echo "Pulling watchdog binary from Github." \ | |
&& curl -sSL https://github.com/openfaas-incubator/of-watchdog/releases/download/0.2.2/of-watchdog > /usr/bin/fwatchdog \ | |
&& chmod +x /usr/bin/fwatchdog \ | |
&& apk del curl --no-cache | |
WORKDIR /go/src/handler | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# di_terraform.tf | |
# Example Terraform configuration that shows de-coupling resources (Amazon S3 bucket and bucket policy) | |
# with the help of modules analogous to dependency injection technique | |
# modules/s3_bucket/main.tf | |
# Base S3 bucket that can be attached a policy | |
variable "bucket_name" {} | |
variable "region" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Input: ./extract_kubecfg_cert.sh my-cluster-name username | |
# Output: ./my-cluster-name-ca.crt ./username.crt ./username.key | |
# Exit on error | |
abort(){ | |
echo $1 && exit 1 | |
} | |
# Prerequistes |