Skip to content

Instantly share code, notes, and snippets.

View emrekgn's full-sized avatar

Emre Kağan Akkaya emrekgn

View GitHub Profile
@emrekgn
emrekgn / isimler
Last active April 26, 2024 13:14
Türkçe İsim Listesi
JALE
ALİ
MAHMUT
MANSUR KÜRŞAD
GAMZE
MİRAÇ
YÜCEL
KUBİLAY
HAYATİ
BEDRİYE MÜGE
@emrekgn
emrekgn / soyisimler
Created December 4, 2015 08:44
Türkçe Soyisim Listesi
ŞEN
KANDEMİR
ÇEVİK
ERKURAN
TÜTEN
ÖZTÜRK
YÜZBAŞIOĞLU
VURAL
YÜCEL
SÖNMEZ
@emrekgn
emrekgn / collect-sysinfo.py
Last active February 19, 2024 18:45
Collect system information (BIOS, CPU, GPU, installed packages, motherboard and more) in a cross-platform manner!
#!/usr/bin/env python
"""
Print (and write to JSON file) system information in a cross-platform manner.
Output contains information about platform, BIOS, CPU, memory, disk, GPU, network, peripheral devices, installed
packages, motherboard and users.
This script heavily relies on psutil and some other bash/powershell commands. See requirements.txt for dependency list.
@emrekgn
emrekgn / a-spring-cloud-config-server-application.yml
Last active June 25, 2023 23:55
Spring Cloud Config Server and Client example configuration
# application.yml file of the config server (Spring Cloud Config Server)
server:
port: 9999 # or whatever
spring:
application:
name: config-service
cloud:
config:
server:
git:
@emrekgn
emrekgn / jdk8-kurulum.md
Created August 24, 2017 10:47
Java 8 Kurulumu

Java 8 kurulumu

Debian tabanlı (Debian, Ubuntu, Mint, Pardus gibi) Linux sistemlerde (paket deposunda bulunmadığı taktirde) JDK8 aşağıdaki adımlar izlenerek kurulabilir:

  1. sudo apt-get install software-properties-common komutu ile (eğer yoksa) add-apt-repository komutuna ilişkin kurulum yapılır.
  2. sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" komutuyla Java 8'in bulunduğu paket deposu sisteme eklenir.
  3. sudo apt-get update && sudo apt-get install oracle-java8-installer komutuyla Oracle JDK 8 kurulumu tamamlanır.
  4. Kurulumu sınamak adına java -version komutu çalıştırılarak sürümün doğruluğu kontrol edilebilir.

Java kurulumlarının yönetimi

@emrekgn
emrekgn / DummyController.java
Created February 14, 2018 20:47
DataTables - Spring Boot pagination example
package com.dummy.datatables.example;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
@emrekgn
emrekgn / latex-tr.md
Created November 30, 2018 08:28
LATEX Türkçe karakterler
  • \u{g} – ğ
  • \u{G} – Ğ
  • \c{c} – ç
  • \c{C} – Ç
  • \c{s} – ş
  • \c{S} – Ş
  • \”{u} – ü
  • \”{U} – Ü
  • \”{o} – ö
  • \”{O} – Ö
@emrekgn
emrekgn / README-fail2ban-keycloak.md
Created December 16, 2021 19:16 — forked from drmalex07/README-fail2ban-keycloak.md
Use fail2ban to block brute-force attacks to keycloak server. #keycloak #fail2ban #brute-force-attack

Add regular-expression filter under /etc/fail2ban/filter.d/keycloak.conf:

[INCLUDES]

before = common.conf

[Definition]

_threadName = [a-z][-_0-9a-z]*(\s[a-z][-_0-9a-z]*)*
_userId = (null|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})
@emrekgn
emrekgn / README.md
Created October 16, 2020 10:34 — forked from hofmannsven/README.md
Git Cheatsheet
@emrekgn
emrekgn / XmppClient.java
Created November 29, 2015 18:17
Smack API example (uses Smack v4.1.5)
package xmpp.client.example;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Collection;
import org.jivesoftware.smack.AbstractXMPPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode;
import org.jivesoftware.smack.SmackException.NotConnectedException;