Skip to content

Instantly share code, notes, and snippets.

View dimkk's full-sized avatar
💭
poking around

Dima v dimkk

💭
poking around
View GitHub Profile
@dimkk
dimkk / README.md
Created August 21, 2020 10:02 — forked from dkurzaj/README.md
Docker compose Kafka, Zookeeper and Kafka manager

Docker compose Kafka, Zookeeper and Kafka manager

Gist inspired by this one intending to be an updated version of it : https://gist.github.com/17twenty/d619f922ab209f750630824f7c6836e3

Install

  • Create the environment variable that contains our host name (IP address) :
$ export EXPOSED_HOSTNAME=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')
  • Create the folders :
@dimkk
dimkk / blog.ts
Created August 19, 2020 20:10 — forked from nonken/blog.ts
Ghost Blog with CDK - Note: This has some security issues which would need to be addressed on a production environment.
import {App, Duration} from '@aws-cdk/core';
import {
ApplicationListener,
ApplicationListenerRule,
ApplicationLoadBalancer,
ApplicationProtocol,
ApplicationTargetGroup,
InstanceTarget
} from "@aws-cdk/aws-elasticloadbalancingv2";
@dimkk
dimkk / README.md
Created April 7, 2018 19:52 — forked from beevelop/README.md
Taiga Docker-Compose
1. Install and run the docker-compose.yml
git clone https://gist.github.com/1975674c22ce8948c895.git taiga
cd taiga
# Update docker-compose.yml
# - Replace Hostname of taigaback and taigafront
# - Update or disable Email settings
docker-compose up -d
@dimkk
dimkk / gist:93462cb90f93cc8ac0b10ebf3b2e2f67
Created March 22, 2017 16:09 — forked from stiucsib86/gist:ebff282a3989f9a24117
Backup MySQL dump to Azure Storage
#!/bin/sh
mkdir /home/bitnami/backups/
export BACKUP_FILE=/home/bitnami/backups/db-backup.sql.gz
export DATABASE_SCHEMA_NAME=--all-databases
export AZURE_CONTAINER=YOUR_VALUE_HERE
export AZURE_NAME=YOUR_VALUE_HERE
export AZURE_KEY=YOUR_VALUE_HERE
export AZURE_BLOB_NAME=db-production-$(date +%Y%m%d%H%M%S).sql.gz
@dimkk
dimkk / install.sh
Created March 18, 2017 09:32 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"