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 / 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 / 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 / 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 / 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;
}
@Ardakilic
Ardakilic / SeoComposer.php
Created May 15, 2016 17:30
PHPKonf 2016 sunumu için, SEO composer örnek PHP Sınıfı (View Composer)
<?php namespace App\Composers;
/**
* @author Şerafettin Yarar <serafettin@serafettin.net>
* @web http://serafettin.net
*/
use Route;
use Illuminate\View\View;
@Ardakilic
Ardakilic / Yubikey SSH Key Windows intermediate fix commands.md
Last active March 27, 2016 13:08
Yubikey SSH Key Windows intermediate fix commands

#Yubikey (and Any Other Smartcard) SSH Connection shortcuts

In Windows envionment, not everything works out of the box especially about Yubikey. So you need to install additional tools and take additional steps.

Because of a bug, in Windows, when you unplug your smart card and re-plug, it may not run always.

These gists are simple batch commands to reset the state of gpg4Win to make your smart card available again with simple clicks, and without restarting your PC.

You may also want to create a new shortcut for gpg-connect-agent and run it on startup: