Skip to content

Instantly share code, notes, and snippets.

View sebholstein's full-sized avatar

Sebastian Holstein sebholstein

View GitHub Profile
#!/bin/bash
set -ex
nats stream del NO_COMPRESSION --force > /dev/null || true
nats stream del WITH_COMPRESSION --force > /dev/null || true
nats stream add NO_COMPRESSION \
--subjects NO_COMPRESSION \
--replicas 1 \
--storage=file \
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDVS2nVZloSrnNXY2r2dQkwETOMnSwMy99aQQ4bJtR5Ml7CdysYUmTw8ue5R6Uaz++5wV1QIbBRvjLwJC+JQDdsDNc7kCyRZZD0GXvb6JXalu0DvS62U2vwa4FurOcOkwwwM9HdaeikHVhs3uN9nGngB/YAwybOl/WBGWivFCZS1SBjdvD7RKBgruF8tDSn2VOTJmrqiTH+G8iAv/3QFHvI4vekJFg5ag+0GM+7grA+94cyTX14yM6tXvTC2B4ebVO2JxtzbimPkGZfIYwpZ9rb0V4EVAXkv+WvS5kPAaQK6ysJIyUihlXCGMFAgxhJJh+B2GFu+JA0evAJpJ/T0z/wZt7wleBO74WilfgA70YiSjWuy0DP3EFmV5J3oLGQanqhN7xAZvXWjFWdT5hqBGvl+80wnGwFh+FlbqdaGD4euA3SCFFR5exOXbfKByrs+RSXu9wYC9vQilaeAPu2q/SMoIGrrCN80dUImQ+QPuSYkylIvRZAiHKGX562AOTMkvMX1StiQ9tJyofgliOeWUnIUEZhdemQ9AYaAC7TPV3/Ff1UfsP5vWnKxVzel/uKTyINcyfIVYiARyd/86mX3Fk0ePQ/36+Hov6fffTWQQN1ISBCbBhCG2tC+4ANCrgVT/KFVvYu1hG8wGloUGLpefnMyAZTJXAReK9EPdU6bHbpSw== Sebastian.Holstein@C02FQDC1MD6M
@sebholstein
sebholstein / base.yaml
Created October 4, 2019 09:02
cadance base.yaml postgres
log:
stdout: true
level: info
persistence:
defaultStore: postgres
visibilityStore: postgres
numHistoryShards: 4
datastores:
postgres:
if ('Notification' in window && Notification.permission === 'granted') {
// it's save to send notifications here if you want to...
)
if ('Notification' in window) {
Notification.requestPermission().then(status => {
// status can be 'granted' or 'denied'
// code to handle the result here...
});
}
@sebholstein
sebholstein / bootstrap-consul.sh
Created June 29, 2016 07:52 — forked from yaronr/bootstrap-consul.sh
Bootstrap Consul on CoreOS
#!/bin/bash
source /etc/environment
hostname=$(cat /etc/machine-id)
machines=$(etcdctl ls /consul.io/bootstrap/machines)
#If there are 'machines' then the cluster has been initialised.
if [ -z "$machines" ]
then
flags="${flags} -bootstrap"
@sebholstein
sebholstein / bootstrap-consul.sh
Created June 29, 2016 07:52 — forked from bluk/bootstrap-consul.sh
Consul Bootstrap on CoreOS
#!/bin/bash
# From https://gist.github.com/philips/56fa3f5dae9060fbd100
source /etc/environment
name=$(cat /etc/machine-id)
if [ ! -f /opt/consul ]; then
mkdir /opt
mkdir /var/lib/consul
@sebholstein
sebholstein / designer.html
Created February 13, 2015 12:45
designer
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
@sebholstein
sebholstein / karma.conf.js
Created October 16, 2014 19:26
Karma Demo Konfigurationsdatei - erstellt mit "karma init"
// Karma configuration
// Generated on Thu Oct 16 2014 20:54:32 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
/* mixin namens border-radius */
=border-radius($radius: 5px)
-webkit-border-radius: $radius
-moz-border-radius: $radius
-khtml-border-radius: $radius
border-radius: $radius
.box-xy
/* würde in diesem beispiel einen radius von 5px nehmen */