Skip to content

Instantly share code, notes, and snippets.

View bnickel's full-sized avatar

Brian Nickel bnickel

View GitHub Profile
@clipperhouse
clipperhouse / winapps.ps1
Last active March 28, 2017 09:40
Removing consumer apps and undesirable SDKs from Windows and Visual Studio
# caveat emptor, this worked for me, be careful, your milage may vary
# to remove “consumer” Windows Store apps like Weather, Finance, News from Windows 8:
# http://blogs.technet.com/b/deploymentguys/archive/2012/10/26/removing-built-in-applications-from-windows-8.aspx
# remove the apps from the current user account. it will clean up your start screen, basically.
# you will likely see errors when this runs, but it’s still effective
Get-AppXPackage | Remove-AppxPackage
# this removes the apps from the machine entirely
@steipete
steipete / PSPDFUIKitMainThreadGuard.m
Last active March 10, 2024 19:23
This is a guard that tracks down UIKit access on threads other than main. This snippet is taken from the commercial iOS PDF framework http://pspdfkit.com, but relicensed under MIT. Works because a lot of calls internally call setNeedsDisplay or setNeedsLayout. Won't catch everything, but it's very lightweight and usually does the job.You might n…
// Taken from the commercial iOS PDF framework http://pspdfkit.com.
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
// Licensed under MIT (http://opensource.org/licenses/MIT)
//
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit.
#import <objc/runtime.h>
#import <objc/message.h>