Skip to content

Instantly share code, notes, and snippets.

@lukasz-kaniowski
lukasz-kaniowski / docker-compose.yml
Created June 7, 2022 14:04
Setup replication slot for postgres
version: '3.1'
services:
db:
image: postgres:13-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=test

Keybase proof

I hereby claim:

  • I am lukasz-kaniowski on github.
  • I am lkaniowski (https://keybase.io/lkaniowski) on keybase.
  • I have a public key ASCMTIFxfhGlyrevystEAx4nv5YrnxS-xX_iteWGuRDW9go

To claim this, I am signing this object:

@lukasz-kaniowski
lukasz-kaniowski / alb-ingress-controller.yaml
Last active March 4, 2019 09:58
Deploying k8s service with internal ALB
# Application Load Balancer (ALB) Ingress Controller Deployment Manifest.
# This manifest details sensible defaults for deploying an ALB Ingress Controller.
# GitHub: https://github.com/kubernetes-sigs/aws-alb-ingress-controller
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alb-ingress-controller
name: alb-ingress-controller
namespace: kube-system
@lukasz-kaniowski
lukasz-kaniowski / nginx-service-private-elb.yaml
Last active March 1, 2019 15:56
Deploying k8s service with internal ELB
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
@lukasz-kaniowski
lukasz-kaniowski / eks.tf
Created February 8, 2019 14:08
setup eks and deploy sample app
module "eks" {
source = "terraform-aws-modules/eks/aws"
cluster_name = "eks"
subnets = ["${module.vpc.public_subnets}"]
vpc_id = "${module.vpc.vpc_id}"
worker_groups = [
{
instance_type = "m4.large"
@lukasz-kaniowski
lukasz-kaniowski / backend.tf
Last active February 7, 2019 16:06
Init s3 bucket and dynamodb as lock for new environment
terraform {
backend "s3" {}
}
@lukasz-kaniowski
lukasz-kaniowski / README.md
Created January 10, 2019 14:25
Assume role for aws cli

Instructions

Modify files under ~/.aws directory

Usage

Use it as you would normally use aws profiles for cli

@lukasz-kaniowski
lukasz-kaniowski / backup.js
Created July 12, 2017 14:07
Streaming backup of mongodb 3.2
const fs = require('fs')
const writeStream = fs.createWriteStream('out.db')
const { spawn } = require('child_process');
const mongodump = spawn('mongodump', ['--archive', '--db', 'databaseName']);
mongodump.stdout.pipe(writeStream);
@lukasz-kaniowski
lukasz-kaniowski / Dockerfile
Created May 31, 2016 19:29 — forked from loudnate/Dockerfile
DockerHub:loudnate/openaps-dev
# Pull base image
FROM resin/rpi-raspbian:wheezy
MAINTAINER Nathan Racklyeft <loudnate@gmail.com>
# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
git \
python \

Creating new project with ionic framework using yeoman ionic generator:

$ mkdir my-ionic-project && cd $_
$ yo ionic

Links: