Skip to content

Instantly share code, notes, and snippets.

@dogukancagatay
dogukancagatay / check_corrupt_images.py
Created November 22, 2018 08:43
Checks and separates corrupt images
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pip install Pillow
import os
import shutil
from PIL import Image
IMAGES_PATH = './images'
@dogukancagatay
dogukancagatay / ImportTruncgil.gs
Created January 8, 2019 08:33
Truncgil Finans JSON API Google Sheets icin Google Apps Script
/**
* Imports currency data from Truncgil JSON API in TRY Ex: IMPORTTRUNCGIL("Çeyrek Altın")
* @param {string} currency_type - Type of the currency
* @customfunction
*/
function IMPORTTRUNCGIL(currency_type) {
is_ok = false;
switch(currency_type) {
case "ABD DOLARI":
is_ok = true;
@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 
@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 / 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

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 / 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
@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
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 / 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
##############################################################################