Skip to content

Instantly share code, notes, and snippets.

@dogukancagatay
dogukancagatay / HA Proxy With Docker.md
Last active September 3, 2022 18:22
Basic HAProxy Setup for Multiple Services with Docker

Basic HAProxy Setup for Multiple Services with Docker

  • RabbitMQ
  • Redis
  • Web Server/Ingress
@dogukancagatay
dogukancagatay / Keepalived Configuration.md
Last active June 8, 2020 06:18
Basic Keepalived Configuration

Keepalived Configuration

yum install -y keepalived
@dogukancagatay
dogukancagatay / bench.py
Created May 26, 2020 17:08
Simple Solr Query Benchmark
import pysolr
import time
import json
import os
import threading
from datetime import datetime
from datetime import timedelta
##############################################################################
@dogukancagatay
dogukancagatay / readme.md
Created May 4, 2020 09:35
Google Meet Desktop App

Google Meet Desktop App

A clean and native interface to Google Meet (https://meet.google.com) using nativefier.

Supports dark and light mode on macOS Mojave.

Build Instructions

To build the application, nativefier will be used with the following commands:

@dogukancagatay
dogukancagatay / install_docker_raspberry_pi.md
Last active February 28, 2020 20:53
Install Docker on Raspberry pi #docker #raspberry-pi

Install Docker on Raspberry Pi

apt-get install -y apt-transport-https ca-certificates software-properties-common
curl -sSL https://get.docker.com | sh
usermod -aG docker pi 
systemctl start docker
systemctl enable docker
@dogukancagatay
dogukancagatay / readme.md
Last active February 9, 2020 17:51 — forked from mozillazg/supervisord.service
Install and configure supervisord on Centos7
  1. Install: pip/pip3 install supervisor
  2. Configure:
    1. mkdir -p /etc/supervisord/conf.d /var/log/supervisord /var/run/supervisord
    2. cp supervisord.conf /etc/supervisord/supervisord.conf
  3. Setup as systemd service: cp supervisord.service /usr/lib/systemd/system/supervisord.service
  4. Reload systemd service configurations systemctl daemon-reload
  5. Start service

Setup master

hostnamectl set-hostname ipa.example.local
echo "192.168.2.85 ipa.example.local" | sudo tee -a /etc/hosts
yum module list idm
yum module info idm:DL1
@dogukancagatay
dogukancagatay / create_htpasswd.sh
Created November 22, 2019 12:59
htpasswd File Create #docker #htpasswd
docker run --rm -it httpd:2.4-alpine htpasswd -nb user passwd
@dogukancagatay
dogukancagatay / xca-build-install-ubuntu-1804.md
Created January 12, 2019 15:34
XCA build and install on Ubuntu 18.04

Install XCA on Ubuntu 18.04

Install Dependencies

apt-get update
apt-get install -y git build-essential automake pkg-config
apt-get install -y libssl-dev libltdl-dev qt5-default qttools5-dev-tools

Clone, Build and Install

@dogukancagatay
dogukancagatay / xca-build-install-centos-7.md
Last active June 15, 2021 13:52
XCA build and install on CentOS 7

Install XCA on Centos 7

Install Dependencies

yum install -y git
yum groupinstall -y "Development Tools"
yum install -y qt5-qtbase-devel qt5-qttools-devel qt5-qtbase-mysql qt5-qtbase-postgresql qt5-linguist
yum install -y openssl-devel libtool-ltdl-devel