Skip to content

Instantly share code, notes, and snippets.

View Nastradamus's full-sized avatar

Victor Yagofarov Nastradamus

  • MTS
  • Moscow, Russia
View GitHub Profile
#!/usr/bin/env bash
#
# This script ports deployed Helm v2 Packages from k8s API v1.15 to 1.16
#
# When upgrading K8s clusters to a new minor API version it is possible that
# already deprecated API Endpoints are removed e.g,
# extensions/v1beta1/DaemonSet
# K8s handles this transparently for already deployed ressources from the
# deprecated paths, making them available via their new API. They are no loanger
# available through the removed paths though
@Nastradamus
Nastradamus / init.sql
Created November 19, 2015 06:59 — forked from vadv/init.sql
bench postgresql
psql -c 'create database pgbench'
psql -c 'create database results'
psql -c '
CREATE TABLE testset(
set serial PRIMARY KEY,
info text
);
CREATE TABLE tests(
test serial PRIMARY KEY,