This file contains hidden or 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 | |
| #set -e | |
| # install-wifi - 03/05/2021 - by MrEngman. | |
| UPDATE_SELF=${UPDATE_SELF:-1} | |
| UPDATE_URI="http://downloads.fars-robotics.net/wifi-drivers/install-wifi" | |
| ROOT_PATH=${ROOT_PATH:-"/"} | |
| WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"} |
This file contains hidden or 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
| { | |
| "colors": { | |
| "PrimaryPure": "#181D4B", | |
| "SecondaryPure": "#FF9A66", | |
| "PrimaryLight": "#D5D8EC", | |
| "SecondaryLight": "#F9EBE4", | |
| "PrimaryMedium": "#4D5387", | |
| "SecondaryMedium": "#FAD4C0", | |
| "PrimaryDark": "#0E0F18", |
This file contains hidden or 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
| #pragma mark - Calculate height for label: | |
| - (CGFloat)heightForText:(NSString*)text font:(UIFont*)font withinWidth:(CGFloat)width { | |
| CGSize size = [text sizeWithAttributes:@{NSFontAttributeName:font}]; | |
| CGFloat area = size.height * size.width; | |
| CGFloat height = roundf(area / width); | |
| return ceilf(height / font.lineHeight) * font.lineHeight; | |
| } |
This file contains hidden or 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
| When using libimobiledevice on Mojave, I ran into a few errors with lockdown and usbmuxd.. here's a workaround that I found on the libimobiledevice issue section in GitHub: | |
| brew update | |
| brew uninstall --ignore-dependencies libimobiledevice | |
| brew uninstall --ignore-dependencies usbmuxd | |
| brew install --HEAD usbmuxd | |
| brew unlink usbmuxd | |
| brew link usbmuxd | |
| brew install --HEAD libimobiledevice |