Skip to content

Instantly share code, notes, and snippets.

@vlaskos
vlaskos / Settings URL schemes:
Created April 1, 2019 10:12
Settings URL schemes:
Settings URL schemes:
Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:
app-settings:root=General&path=About
app-settings:root=General&path=ACCESSIBILITY
app-settings:root=AIRPLANE_MODE
app-settings:root=General&path=AUTOLOCK
app-settings:root=General&path=USAGE/CELLULAR_USAGE
app-settings:root=Brightness
app-settings:root=General&path=Bluetooth
@vlaskos
vlaskos / PasscodeUtils
Created April 1, 2019 10:01
PasscodeUtils
//
// PasscodeUtils.swift
//
// Created by Ben Bahrenburg on 12/31/16.
// Copyright © 2016 bencoding.com. All rights reserved.
//
import Foundation
import LocalAuthentication
public final class PasscodeUtils {
TAGS="TODO:|FIXME:|WARNING:"
ERRORTAG="ERROR:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"| perl -p -e "s/($ERRORTAG)/ error: \$1/"
@vlaskos
vlaskos / xcode-todo-fixme-as-warning.sh
Created November 29, 2017 13:10 — forked from codelahoma/xcode-todo-fixme-as-warning.sh
Highlight TODO and FIXME as warnings in Xcode 8 (add as script build phase)
TAGS="TODO:|FIXME:"
SKIPDIRS="/Carthage"
find "${SRCROOT}/" -type f \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 \
| xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" \
| grep -v "$SKIPDIRS" \
| perl -p -e "s/($TAGS)/ warning: \$1/"