Skip to content

Instantly share code, notes, and snippets.

@dogukancagatay
dogukancagatay / .gitignore
Last active October 16, 2020 23:04
Configurable Marlin Firmware build script (with PlatformIO CLI) for BigTreeTech SKR Mini E3 2.0 board
dist
Configurations
Marlin
BIGTREETECH-TouchScreenFirmware
@dogukancagatay
dogukancagatay / backup_mongo.sh
Created September 9, 2020 09:34
MongoDB backup script with docker #docker #mongodb #backup
#!/usr/bin/env bash
MONGO_URL="mongodb://192.168.1.100/"
BACKUP_PARENT_DIR="/tmp/mongo-backups"
BACKUP_DIR="mongobackup-`date +%Y-%m-%d-%H-%M-%S`"
BACKUP_COLLECTION_PARALLELISM="4"
@dogukancagatay
dogukancagatay / daemon.json
Last active April 9, 2024 07:08
Sample Docker daemon.json
{
"data-root": "/mnt/disk1/docker",
"storage-driver": "overlay2",
"insecure-registries" : [
"192.168.1.200:5000"
],
"dns": [
"192.168.1.1"
],
"registry-mirrors" : [
dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
dnf install -y cuda
cat <<EOF > /etc/profile.d/cuda.sh 
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
EOF
@dogukancagatay
dogukancagatay / user_auth.py
Created June 10, 2020 06:16
Tweepy Twitter API
import tweepy
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
try:
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
@dogukancagatay
dogukancagatay / KeyDB with Docker.md
Last active October 21, 2024 10:07
Basic KeyDB Configuration with Docker

KeyDB with Docker

Migration from Redis

Connect to your keydb server new-keydb-server-1

keydb-cli -h new-keydb-server-1
@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: