Skip to content

Instantly share code, notes, and snippets.

View jkowalski's full-sized avatar

Jarek Kowalski jkowalski

  • Redmond, WA
View GitHub Profile
@jkowalski
jkowalski / batch.go
Created May 23, 2019 21:44
batch processing algorithm
type requestWithResponseChannel struct {
request allocationRequest
ch chan allocationResponse
}
var (
pendingRequests []requestWithResponseChannel
isProcessing bool
)

Keybase proof

I hereby claim:

  • I am jkowalski on github.
  • I am jkowalski (https://keybase.io/jkowalski) on keybase.
  • I have a public key ASAjm4G-8lTL6hvXmHRsiKZ0ZacckQSE8QmjjHztJoiiEAo

To claim this, I am signing this object:

Kopia Entity Contributor License Agreement

Thank you for your interest in contributing to Kopia ("We" or "Us"). This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by electronic submission, following the instructions at https://kopia.io/cla. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

  • "You" means any Legal Entity on behalf of whom a Contribution has been received by Us. "Legal Entity" means an entity which is not a natural person. "Affiliates" means other Legal Entities that control, are controlled by, or under common control with that Legal Entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such Legal Entity, whether by contract or otherwise, (ii) ownership of fifty percent (50%) o

Kopia Individual Contributor License Agreement

Thank you for your interest in contributing to Kopia ("We" or "Us").

This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by electronic submission, following the instructions at https://kopia.io/cla. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

  • "You" means the individual who Submits a Contribution to Us.
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"net/url"
"os"
# ANSI color codes
RS="\[\033[0m\]" # reset
HC="\[\033[1m\]" # hicolor
UL="\[\033[4m\]" # underline
INV="\[\033[7m\]" # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
@jkowalski
jkowalski / .tmux.conf
Created July 23, 2018 04:48
tmux.conf
set-option -g prefix2 C-a
set -s escape-time 0
set -g history-limit 50000
set -g display-time 4000
set -g status-interval 5
set -g default-terminal "screen-256color"
set -g focus-events on
setw -g aggressive-resize on