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
{ | |
"definitions": { | |
"CreateDocumentCommand": { | |
"type": "object", | |
"required": ["eventType", "documentName"], | |
"properties": { | |
"eventType": { | |
"type": "string", | |
"enum": ["CreateDocument"] | |
}, |
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
import { Observable } from 'rxjs/Observable'; | |
import { Subscription } from 'rxjs/Subscription'; | |
import { Subject } from 'rxjs/Subject'; | |
import 'rxjs/add/operator/switchMap'; | |
export class ReactiveLoader<T, T1> { | |
private _requestQueue: Subject<T1>; | |
private _resultQueue: Observable<T>; | |
private _loaded: boolean = false; |
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
// Inspired by https://medium.com/@maximilianofelice/builder-pattern-in-scala-with-phantom-types-3e29a167e863 | |
export type Pizza = {}; | |
namespace Pizza { | |
export type WithCheese = { | |
readonly cheese: string; | |
}; | |
export type WithTopping = { | |
readonly topping: string; |
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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon | |
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 | |
# Used to cast screen with camera feed ttached + recording this stream along with audio mixed from both mic and speakers. | |
# For hangouts one should share gst-launch window (the window itself can then be minimized) | |
# Tested on Ubuntu 16.04 | |
PIP_WIDTH=320 | |
PIP_HEIGHT=240 | |
SCREEN_WIDTH=1920 | |
SCREEN_HEIGHT=1200 |
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
/var/lib/docker/containers/*/*-json.log { | |
dateext | |
daily | |
rotate 60 | |
compress | |
delaycompress | |
missingok | |
copytruncate | |
} |
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
#copies files recursively but filter by extension | |
find . -name "*.txt" | cpio -pdmuv path/to/dest |
NewerOlder