Skip to content

Instantly share code, notes, and snippets.

View ercansormaz's full-sized avatar

Ercan SORMAZ ercansormaz

View GitHub Profile
[{"number":"+24762889","country_prefix":"+247","country_code":"AC","country_name":"Ascension Island","national_number":"62889","international_number":"+247 62889","line_type":"FIXED_LINE"},{"number":"+22620491234","country_prefix":"+226","country_code":"BF","country_name":"Burkina Faso","national_number":"20 49 12 34","international_number":"+226 20 49 12 34","line_type":"FIXED_LINE"},{"number":"+21312345678","country_prefix":"+213","country_code":"DZ","country_name":"Algeria","national_number":"012 34 56 78","international_number":"+213 12 34 56 78","line_type":"FIXED_LINE"},{"number":"+441624756789","country_prefix":"+44","country_code":"GB","country_name":"United Kingdom","national_number":"01624 756789","international_number":"+44 1624 756789","line_type":"FIXED_LINE"},{"number":"+922123456789","country_prefix":"+92","country_code":"PK","country_name":"Pakistan","national_number":"(021) 23456789","international_number":"+92 21 23456789","line_type":"FIXED_LINE"},{"number":"+59122123456","country_prefix":"
@ercansormaz
ercansormaz / java-25-gatherers-examples.md
Created November 1, 2025 10:31
Java 25 Stream API Gatherers – Example snippets for windowing, folding, scanning and concurrent mapping gatherers.

👉 Read the Blog Post

WindowFixedGatherer.java

import java.util.stream.*;
import java.util.List;
import java.util.stream.Gatherers;

void main() {
  List<Integer> numbers = IntStream.rangeClosed(1, 15)
@ercansormaz
ercansormaz / ffmpeg-build-script-for-macos.md
Last active May 24, 2026 18:02
Build FFmpeg from Source with AV1, x264, x265, fdk-aac and More (macOS Guide)

👉 Read the Blog Post

# ============================================================
# FFmpeg Build Script (macOS / Source-based Installation)
# ============================================================
# This script builds FFmpeg 8.1 from source with support for
# AV1, x264, x265, fdk-aac, libmp3lame, opus, libvpx, freetype 
# and OpenSSL.
#
@ercansormaz
ercansormaz / imagemagick-build-script-for-macos.md
Last active November 16, 2025 10:47
Building ImageMagick from Source with HEIF, WebP, and Modern Codecs on macOS

👉 Read the Blog Post

# ============================================================
# ImageMagick Build Script (macOS / source-based installation)
# ============================================================
# This script builds ImageMagick from source with support for
# HEIF, WebP, PNG, JPEG, TIFF, FreeType, and more.
# All libraries are installed into a custom isolated directory.
# ============================================================
@ercansormaz
ercansormaz / mysql-installation-on-macos.md
Created October 26, 2025 12:55
MySQL Installation on macOS (Homebrew)

👉 Read the Blog Post

# Step 1: Install MySQL
brew install mysql

# Step 2: Start MySQL temporarily
brew services run mysql

# Step 3: Run secure installation
# For ARM64 (Apple Silicon)
@ercansormaz
ercansormaz / postgresql-installation-on-macos.md
Last active October 26, 2025 12:56
PostgreSQL Installation on macOS (Homebrew)

👉 Read the Blog Post

# Install PostgreSQL 18
brew install postgresql@18

# Remove default cluster
# For ARM64 (Apple Silicon)
rm -rf /opt/homebrew/var/postgresql@18
[{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"01001000","bin_end":"01001099","brand":"Proprietary","type":"Kredi Kart\u0131"},{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"09001004","bin_end":"09001004","brand":"UnionPay","type":"Kredi Kart\u0131"},{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"40459100","bin_end":"40459199","brand":"Visa","type":"Kredi Kart\u0131"},{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"40781400","bin_end":"40781499","brand":"Visa","type":"Banka Kart\u0131"},{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"41322600","bin_end":"41322699","brand":"Visa","type":"Kredi Kart\u0131"},{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"43452800","bin_end":"43452899","brand":"Visa","type":"Kredi Kart\u0131"},{"bank_code":"0010","bank_name":"T.C.Z\u0130RAAT BANKASI A.\u015e.","bin_start":"4345290
@ercansormaz
ercansormaz / binlist.sql
Last active September 13, 2025 19:04
Türkiye’de kullanılan kartlara ait BIN (Bank Identification Number) listesi
--
-- Türkiye BIN Listesi
-- Son Güncellenme Tarihi: 13.05.2025
-- https://ercan.dev/tools/bin-sorgulama/
--
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
@ercansormaz
ercansormaz / aws-certification-cheat-sheet.md
Created June 10, 2020 12:05 — forked from selcukcihan/aws-certification-cheat-sheet.md
Cheat sheet for aws certification exams.

S3

  • By default all new buckets are private
  • You can have bucket policies and ACLs (ACL can go down to individual objects)
  • Read after write consistency for puts of new objects
  • Eventual consistency for overwrite PUTs and DELETEs
  • Storage classes
    • S3 standard (99.99 availability, 11 9s durability) can sustain loss of 2 facilities concurrently
    • S3-IA lower fee than S3 but you are charged a retrieval fee (99.9% availability)
    • S3 One Zone - IA lower cost option if you don't need multi AZ data resilience (99.5% availability)
  • S3 Intelligent Tiering