Skip to content

Instantly share code, notes, and snippets.

View jboehler's full-sized avatar

Jan Böhler jboehler

View GitHub Profile
@jboehler
jboehler / KeychainItemWrapper.h
Created February 15, 2012 08:54 — forked from dhoerl/KeychainItemWrapper.h
KeychainItemWrapper ARCified
/*
File: KeychainItemWrapper.h
Abstract:
Objective-C wrapper for accessing a single keychain item.
Version: 1.2 - ARCified
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of

Git Installieren

Am einfachsten installiert man Git über Homebrew.

brew install git

Zusätzlich empfiehlt es sich bash-completion zu installieren um die komfortable Autocompletion Funktionalität in Git zu erhalten.

brew install git bash-completion

create ´~/.git_template/hooks/pre-commit´ file

#!/usr/bin/python

import os
import sys

username = os.popen("git config user.name").read()
usermail = os.popen("git config user.email").read()

Xcode Behavior Script - open Terminal

Terminal

#!/bin/sh

if [ -n "$XcodeProjectPath" ]; then
  open -a Terminal "$XcodeProjectPath"/..
else
@jboehler
jboehler / README.md
Last active July 3, 2020 17:30
Xcode Behavior Script: Run SwiftLint & SwiftFormat only on modified files (using git to find modified files)

Xcode Behavior Script: Run SwiftLint & SwiftFormat

In Xcode settings you can define your own Behavior Scripts. This script will apply swiftlint and swiftformat to all modified files. The modified files are detected with the help of git.

Xcode Behavoior Script can be assigned with a shortcut so this script can be used to format swift code in xcode with a shortcut. 😎

Dependence: