Skip to content

Instantly share code, notes, and snippets.

View MauriceArikoglu's full-sized avatar
🧑‍🍳
Cooking copy pasta

Maurice Arikoglu MauriceArikoglu

🧑‍🍳
Cooking copy pasta
View GitHub Profile

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@MauriceArikoglu
MauriceArikoglu / localized2JSON.swift
Created June 13, 2023 17:32 — forked from billyto/localized2JSON.swift
convert localizable.string files to json format
#!/usr/bin/env swift
//FIRST: chmod +x localized2JSON.swift
//USE: ./localize-strings2json.swift localizable.strings strings.json
//TODO: error checking for parameters and files
//TODO: --help -h
//TODO: separate groups of string in dictionaries?
import Foundation
@MauriceArikoglu
MauriceArikoglu / CellConfigurationProtocol.swift
Last active October 1, 2018 14:20
Convenient nib-based cell dequeuing with closure based configuration.
import UIKit
protocol DequeueableReusableCellWithInterface {
static var reuseId: String { get }
static var nib: UINib { get }
}
extension DequeueableReusableCellWithInterface {
static var reuseId: String {