This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>0.816187 0.837374 0.894673 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>SFMono-Bold - 11.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>0.816187 0.837374 0.894673 1</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Run with | |
# `sudo curl -s https://gist.githubusercontent.com/mflknr/927f9dfc87592bd08a87e116ca7408be/raw/f8c8bf14f1e4a51107feb764db39c33e36e2575c/setup.sh | zsh` | |
set -e | |
# install command line tools | |
xcode-select --install | |
echo 'Waiting for Command Line Tools to finish installing. \nAfter installation is complete, press any key to continue...'; read -k1 -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PreviewExt.swift | |
// | |
// | |
// Created by Marius Felkner on 2021-11-15. | |
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2021 Marius Felkner (https://twitter.com/mflknr) | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SWIFT_LINT=/opt/homebrew/bin/swiftlint | |
SWIFT_LINT_CONFIG=.swiftlint.yml | |
SWIFT_FORMAT=/opt/homebrew/bin/swiftformat | |
CHANGED_FILES="$(git --no-pager diff --name-status --no-color --cached | awk '$1 != "D" && $NF ~ /\.swift?$/ { print $NF }')" | |
if [[ -e "${SWIFT_LINT}" || -e "${SWIFT_FORMAT}" ]]; then | |
count=0 |