Skip to content

Instantly share code, notes, and snippets.

View erenkabakci's full-sized avatar

Eren Kabakçı erenkabakci

View GitHub Profile
@erenkabakci
erenkabakci / PR-maintenance Claude code SKILL.md
Last active May 20, 2026 14:31
PR-maintenance Claude code SKILL.md
name pr-maintenance
description Performs comprehensive PR maintenance — rebases onto main, scans GitHub Actions failures, surfaces unaddressed review comments, auto-applies thumbs-up-reacted suggestions, and does an independent code review. Use when the user wants to catch up on a PR, fix CI, address review comments, or do general PR hygiene. Accepts a GitHub URL, PR number, or auto-detects from the current branch.
argument-hint [pr-url|pr-number] [--codebase path]

PR Maintenance

Description

Performs end-to-end pull request maintenance: rebases onto main, identifies GitHub Actions failures, surfaces and triages review comments (new, reacted, pending reply), performs an independent code review, and commits approved changes. Each change requires explicit user confirmation before being applied. No specialists are dispatched — the supervisor handles this directly.

import SwiftUI
@main
struct magic_switcherApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(ThemeObservable())
}
}
precedencegroup FunctionBuilderUtility {
associativity: none
}
infix operator .. : FunctionBuilderUtility
@discardableResult
public func .. <T>(object: T, block: (inout T) -> Void) -> T {
var object = object
block(&object)
@erenkabakci
erenkabakci / UserNotificationsHandling.swift
Last active May 2, 2023 22:09
UserNotificationsHandling
//
// UserNotificationsHandling.swift
//
// Copyright © 2023 Eren Kabakci. All rights reserved.
//
import UserNotifications
import AppKit
// Generic local notifications API for any consumer to use
final class DepotViewModel: ObservableObject {
@Published searchPresented: Bool = false
func presentSearch() {
showSearch = true
}
}
struct DepotOverviewView: View {
final class DepotViewModel: BaseViewModel<DepotViewModel.State, DepotViewModel.Action> {
struct State: Equatable, Copyable {
var showSearch = false
}
enum Action {
case .openSearch(let show):
showSearch(show: show)
@erenkabakci
erenkabakci / Apple resigning an ipa
Created June 10, 2020 17:19 — forked from phatfly/Apple resigning an ipa
Resigning an iOS xcarchive for the app store (xcarchive to ipa)
Resigning an iOS ipa for the app store
Introduction
Friday, October 18, 2019
For the release of company iOS applications to the Apple app store we need to resign those apps with our appropriate distribution certificate. This is the process you need to follow, as-of-this-writing, to properly re-sign an foo.ipa to upload to Apple using the Application Loader.
This writing is making the assumption that the foo.ipa bundle that you has been created appropriately and that is only needs to be resigned.
@erenkabakci
erenkabakci / PublishersPlayground.swift
Last active February 20, 2020 16:27
PublishersPlayground
import Combine
import Foundation
struct SomeError: Error {}
// 1- Subject scenarios
let currentValueSubject = CurrentValueSubject<String, Error>("foo")
let passThroughSubject = PassthroughSubject<String, Error>()
currentValueSubject.send("Loo") // receiveValue of the subscriber will be called when "sink", receiveCompletion won't be called, the subscription is still active
@erenkabakci
erenkabakci / .zshrc
Last active February 26, 2026 13:30
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
####### set custom path ##############
export PATH=$PATH:~/bin
export PATH=$PATH:~/usr/local
export PATH="/usr/local/sbin:$PATH"
######################################
# export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home'
@erenkabakci
erenkabakci / pre-push
Created October 18, 2017 10:36
Git pre-push hook to remind incrementing the build version
#!/bin/sh
echo " ++++++++ DID YOU INCREASE THE BUILD NUMBER ? ++++++++"
exec < /dev/tty
read input
if [ "$input" == "y" ]; then
exit 0
else
echo "Running hook for build increment"