Skip to content

Instantly share code, notes, and snippets.

🐱
cat

Alan Zeino alanzeino

🐱
cat
Block or report user

Report or block alanzeino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alanzeino
alanzeino / new-mac.md
Last active Apr 29, 2019
New Mac Setup
View new-mac.md

All the stuff I do to set up a new Mac

Applications

  • Amphetamine
  • DaisyDisk
  • Deliveries
  • iA Writer
  • iStat Menus
  • Kaleidoscope
  • PopClip
  • Reeder
View gist:e388864414e5c2c78f67b049b88948f8
Before November 6:
"Resolves an issue that affected app compatibility with iOS 9.0, 9.1 and 9.2. Apps containing asset catalogs built with Xcode 10 whose deployment target was set to iOS 9.0, 9.1 or 9.2 would produce content incompatible with the runtimes of those iOS versions. Rebuilding the application with Xcode 10.1 resolves this issue. (44535967)"
After November 6:
"Known Issues
Apps that contain asset catalogs built using Xcode 10 or later with a deployment target set to iOS 9.0, 9.1 or 9.2 produce content incompatible with the runtimes of those iOS versions. (44535967, 45723580, 45723189)"
View gist:97676005e37e6d869401a5adb5777d76
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
@alanzeino
alanzeino / codegen.swift
Last active Oct 26, 2018
swiftsyntax simple class/struct gen example
View codegen.swift
struct MockGenType {
let name: String
let isOptional: Bool
init(name: String, isOptional: Bool = false) {
self.name = name
self.isOptional = isOptional
}
func libRepresentation(hasDefault: Bool = false) -> OptionalTypeSyntax {
@alanzeino
alanzeino / IDEWorkspaceChecks.plist
Created Apr 4, 2018
IDEWorkspaceChecks.plist in 9.3
View IDEWorkspaceChecks.plist
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
View gist:0a421075385408fb71032eba7bef518f
$ sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode \
rm -rf ~/Library/Developer/Xcode/DerivedData \
sudo rm -rf "$(getconf DARWIN_USER_CACHE_DIR)org.llvm.clang.$USER/ModuleCache" \
sudo /usr/libexec/xpccachectl
View SwiftVersionSourceEditorCommand.swift
//
// SwiftVersionSourceEditorCommand.swift
// WrapperExtension
//
// Created by Alan Zeino on 7/25/17.
// Copyright © 2017 Alan Zeino. All rights reserved.
//
import Foundation
import XcodeKit
View OurCache.swift
//
// OurCache.swift
// ConflictingSymbolsViaProtocolExtensions
//
// Created by Alan Zeino on 7/19/17.
// Copyright © 2017 Alan Zeino. All rights reserved.
//
import Foundation
View CollectionView.swift
CollectionView.swift:111:24: error: method does not override any method from its superclass
open override func performBatchUpdates(_ updates: (() -> Void)?, completion: ((Bool) -> Void)? = nil) {
^
UIKit.UICollectionView:122:15: note: potential overridden instance method 'performBatchUpdates(_:completion:)' here
open func performBatchUpdates(_ updates: (() -> Swift.Void)?, completion: ((Bool) -> Swift.Void)? = nil)
View noCrashplan.swift
#!/usr/bin/swift
// Run: $ swift noCrashplan.swift
// Background: https://github.com/KrauseFx/overkill/issues/3#issuecomment-270505227
import Foundation
import Cocoa
import ServiceManagement
let badApps = [ "Code42 CrashPlan", "CrashPlanService", "CrashPlanLauncher", "CrashPlanWeb" ]
You can’t perform that action at this time.