Skip to content

Instantly share code, notes, and snippets.

View emrekgn's full-sized avatar
🏠
Working from home

Emre Akkaya emrekgn

🏠
Working from home
View GitHub Profile
@emrekgn
emrekgn / isimler
Last active October 8, 2025 04:44
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 / collect-sysinfo.py
Last active March 4, 2025 13:35
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 / 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 / a-spring-cloud-config-server-application.yml
Last active July 19, 2024 18:32
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 / publishing-from-github.md
Created November 27, 2025 13:13
How to publish a Python package from Github to pypi ("Trusted Publishers" method)

Publishing to PyPI from GitHub with Trusted Publishers

This guide walks through the full workflow for publishing a Python package to PyPI using GitHub Actions and PyPI's Trusted Publishers (OIDC) feature. No long‑lived API tokens are required—PyPI issues temporary credentials to GitHub at publish time.


1. Prerequisites

  1. A PyPI account with two-factor authentication enabled.
@emrekgn
emrekgn / so-you-think-you-know-git.md
Created November 28, 2025 07:26 — forked from Drarig29/so-you-think-you-know-git.md
All commands from "So You Think You Know Git - FOSDEM 2024"