How to remove known ssh host? There are multiple option to remove a known ssh host from the known_hosts file. 1. Use the ssh-keygen command This is the easiest and safest method to remove the...
Delete .DS_Store and _.DS_Store files recursively To delete all .DS_Store files from subfolders (on macOS), you can use Terminal. Below are the steps to do it safely: 1. Open Terminal 2. Navigate to the directory...
Use Xcode 14 to run/debug code on iOS 17 or tvOS 17 As you might know, Apple doesn't include the iOS 17 or tvOS 17 device support files in Xcode 15. So, the old trick of copy-paste the device support...
How to fix Ubuntu slow Wi-Fi internet speed? There might be multiple reasons for slow Wi-Fi internet speed on Ubuntu. We'll focus on the following two main reasons for the slow internet speed on Ubuntu. 1....
Create git repository zip file without git history Sometimes we need the code zip file but we don't want to include git history into it. There is a simple built-in command in git to do that....
Prevent External Monitor from Sleep when Macbook AC Adapter Unplugged I was facing this issue on my Macbook Pro in macOS Monterey. While I'm connected to the external monitor and the power cord is unplugged then the connected...
Download WWDC, Tech Talks, and other videos up to 16 times faster Downloading WWDC Videos from the Apple Website is very slow and during WWDC month it's terribly slow. So, to solve this problem here is one open-source tool [https:...
How to change playback rate of WWDC Videos? One of the missing features from the WWDC video player is it doesn't have playback rate control. So, here is a simple script to change the playback rate...
Xcode 11.5 crash on launch on macOS 11 Big Sur This is a known issues. Xcode versions prior to Xcode 11.5 crash on launch on macOS 11. Curretly there is one workaround for this. You've to run...
How to Explore Private Framework with iPad Swift Playground App? Swift Playground [https://apps.apple.com/us/app/swift-playgrounds/id908519492] app is the best way to explore iOS private APIs. You can browse iOS Private Headers for latest version from...
Use UIRefreshControl in any UIScrollView(UICollectionView, WebView) Apple documentation shows us how we can use an UIRefreshControl in an UITableViewController, but do you know, we can add it to any UIScrollView ? let refreshControl = UIRefreshControl() refreshControl.addTarget(self,...
How to create empty commits to test CI & CD or anything else? Sometimes we need to make empty commits on some testing branch so that we can trigger various kinds of things like Jenkins build etc. So, here the way to make...
Generate Strongly-Typed Swift/Obj-C Data Models directly from JSON Quicktype [https://app.quicktype.io] generate Strongly-Typed Swift/Objective-C Data Models from JSON, Schema, and GraphQL. You just need to paste your JSON string in left side text box. Generated...
How to create a Strongly Typed Info.plist? You can easily access info.plist strongly typed by create a struct this way - struct InfoPlist<T> { static func get(for key: String) -> T? { return...
An easy way to maintain UserDefaults key You can use #function literal to get the property name as UserDefault key. In the following example, #function will get replaced by accessToken. Be aware, changing the property names may...