Skip to content

Instantly share code, notes, and snippets.

View Ardakilic's full-sized avatar

Arda Kılıçdağı Ardakilic

View GitHub Profile
@Ardakilic
Ardakilic / firmware.md
Last active March 6, 2024 08:02
Domo Macropad birleştirme ve firmware kurulum dökümanı

Pro Micro'ya Firmware Yüklemek

Öncelikle QMK Firmware'i bilgisayarınıza kurmalısınız. Ben Linux ve macOS'te nasıl kurduğumu anlatayım:

cd $HOME
git clone --recurse-submodules git@github.com:qmk/qmk_firmware.git
cd qmk_firmware
make git-submodule
@Ardakilic
Ardakilic / docker-compose.yaml
Created July 2, 2023 09:33
My docker-compose.yaml for mastodon hosting
version: '3.9'
services:
# https://blog.thelazyfox.xyz/setup-swag-to-safely-expose-your-self-hosted-applications-to-the-internet/
# populate swag/config/dns-conf/cloudflare.ini . Token does not work, global api worked ?
# https://github.com/linuxserver/reverse-proxy-confs/blob/master/vaultwarden.subdomain.conf.sample
# 2022-09-08 installed
swag:
image: lscr.io/linuxserver/swag:latest
container_name: swag
@Ardakilic
Ardakilic / nginx.conf
Created November 5, 2021 21:03 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@Ardakilic
Ardakilic / nokiaLCDSPI.py
Created April 19, 2013 08:59
Raspberry Pi GPIO Nokia LCD w/ SPI
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# by Texy and the raspberry pi community
# bitmap display routine by POSitality
# this version using the SPI pins, but not
# using spidev
# 19/1/2013
import time
import wiringpi
@Ardakilic
Ardakilic / php-pools.md
Created September 15, 2020 10:05 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@Ardakilic
Ardakilic / sonarr_symlink_script.sh
Created March 26, 2018 22:35
Sonarr symlink script
@Ardakilic
Ardakilic / nextcloud manuel kurulum.md
Created April 29, 2017 10:03
nextcloud manuel kurulum.md
@Ardakilic
Ardakilic / install-ffmpeg-amazon-linux.sh
Last active October 1, 2016 14:57 — forked from gboudreau/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@Ardakilic
Ardakilic / Google Translate Abbrevations.md
Created June 21, 2016 19:19
Google Translate Abbrevations

Google Translate

Abbreviation Language
af Afrikaans
ar Arabic
az Azerbaijani
be Belarusian
bg Bulgarian
@Ardakilic
Ardakilic / nginx-elasticsearch.conf
Last active June 19, 2016 15:39
elasticsearch served over nginx with proxy + Let's encrypt (certbot) for SSL
server {
listen 80;
server_name elasticsite.com;
access_log off;
error_log off;
# enforce https
return 301 https://$server_name$request_uri;
}