This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| By default, when extracts the Xcode.zip, | |
| macos will create tmp file in `/private/var/folders/v2/tbmrn60d2910x3w23ys5fgs00000gn/T/com.apple.AUHelperService`. | |
| Sometimes, the /private has no ehough space to hold 19GB Xcode.app. | |
| Thus we can create a soft link named `com.apple.AUHelperService` in the tmp dir. | |
| Steps: | |
| 1. BACKUP `com.apple.AUHelperService` in `/private/var/folders/v2/tbmrn60d2910x3w23ys5fgs00000gn/T/` to `com.apple.AUHelperService_BACKUP` | |
| 2. mkdir named `com.apple.AUHelperService` wherever you have enough space, | |
| 3. ln -s /your/absolute/path/com.apple.AUHelperService /private/var/folders/v2/tbmrn60d2910x3w23ys5fgs00000gn/T | |
| 4. double click the Xcode.xip |
| ---------------------------------------------------------------- | |
| -------- Ultimate Compression Savings Estimation Check --------- | |
| ---------------------------------------------------------------- | |
| -- Author: Eitan Blumin | https://www.eitanblumin.com | |
| -- Create Date: 2019-12-08 | |
| -- Source: http://bit.ly/SQLCompressionEstimation | |
| -- Full Link: https://gist.github.com/EitanBlumin/85cf620f7267b234d677f9c3027fb7ce | |
| -- GitHub Repo: https://github.com/MadeiraData/MadeiraToolbox/blob/master/Utility%20Scripts/ultimate_compression_savings_estimation_whole_database.sql | |
| -- Blog: https://eitanblumin.com/2020/02/18/ultimate-compression-savings-estimation-script-entire-database/ | |
| ---------------------------------------------------------------- |
| @discardableResult | |
| private func performRequest<T:Decodable>(route: APIRouter, decoder: JSONDecoder = JSONDecoder(), completion:@escaping (Int, Result<T>)->Void) -> DataRequest { | |
| return Alamofire.request(route).responseData() { responseData in | |
| guard let response = responseData.response else { | |
| completion(APIClient.responseErrorCode, .failure(ApiError.internalServerError(NSLocalizedString("service_error", comment: AppConstant.EMPTY)))) | |
| return | |
| } | |
| /** | |
| * https://gist.github.com/tadija/6003830264d67a87193ff0c3d20373e7 | |
| * Revision 10 | |
| * Copyright © 2018-2021 Marko Tadić | |
| * Licensed under the MIT license | |
| */ | |
| import CoreData | |
| @available(iOS 10.0, *) |
| #!/bin/bash | |
| launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
| launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
| launchctl unload -w /Library/LaunchAgents/com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a23d420d.plist | |
| launchctl unload -w /Library/LaunchDaemons/com.adobe.agsservice.plist | |
| launchctl unload -w /Library/LaunchDaemons/com.adobe.ARMDC.Communicator.plist | |
| launchctl unload -w /Library/LaunchDaemons/com.adobe.ARMDC.SMJobBlessHelper.plist | |
| launchctl unload -w /Library/LaunchDaemons/com.adobe.adobeupdatedaemon.plist | |
| sudo launchctl unload -w /Library/LaunchDaemons/com.adobe.ARMDC.Communicator.plist |
| # Adapted from https://github.com/realm/realm-cocoa/blob/master/scripts/strip-frameworks.sh | |
| # This script strips all non-valid architectures from dynamic libraries in | |
| # the application's `Frameworks` directory which is required for App Store submission. | |
| # | |
| # The following environment variables are required: | |
| # | |
| # BUILT_PRODUCTS_DIR | |
| # FRAMEWORKS_FOLDER_PATH | |
| # VALID_ARCHS |
| [ | |
| { | |
| "action": { | |
| "type": "block" | |
| }, | |
| "trigger": { | |
| "url-filter": ".*", | |
| "resource-type": ["script"], | |
| "load-type": ["third-party"], | |
| "if-domain": ["imore.com"] |
| // | |
| // UIImage+Retina4.h | |
| // StunOMatic | |
| // | |
| // Created by Benjamin Stahlhood on 9/12/12. | |
| // Copyright (c) 2012 DS Media Labs. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
| /* Implementation of HTML Timers (setInterval/setTimeout) based on sleep. | |
| * | |
| * This file is provided under the following terms (MIT License): | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |