Skip to content

Instantly share code, notes, and snippets.

View kad1r's full-sized avatar

Kadir Avcı kad1r

View GitHub Profile
@kad1r
kad1r / .editorconfig
Created September 11, 2023 14:43 — forked from m-jovanovic/.editorconfig
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
@kad1r
kad1r / free-database-hosting.md
Created November 10, 2022 10:02 — forked from bmaupin/free-database-hosting.md
Free database hosting
declare @from int
declare @leap int
declare @to int
declare @datafile varchar(128)
declare @cmd varchar (512)
/*settings*/
set @from = 200000 /*Current size in MB*/
set @to = 180000 /*Goal size in MB*/
set @datafile = 'TESTDB' /*Datafile name*/
set @leap = 500 /*Size of leaps in MB*/
@kad1r
kad1r / clean_code.md
Created November 9, 2021 05:24 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@kad1r
kad1r / aws-certification-cheat-sheet.md
Created June 10, 2020 14:03 — 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
@kad1r
kad1r / result.json
Created November 14, 2019 10:27 — forked from MuhammetDilmac/result.json
Türkiye Şehirler ve İlçeleri
[
{
"name": "Adana",
"districts": [
{
"name": "Aladağ"
},
{
"name": "Ceyhan"
},