Install https://github.com/doronz88/pymobiledevice3.
Get your device's UUID:
xcrun xctrace list devices
Mount the disk image:
sudo pymobiledevice3 mounter auto-mount
| javascript:if(window.WebKitPlaybackTargetAvailabilityEvent){var videos=document.getElementsByTagName("video");if(videos.length>0)for(var airplayable=videos[0],i=0;i<videos.length;i++)if(!(airplayable=videos[i]).paused){airplayable.webkitShowPlaybackTargetPicker();break}} |
| import google.auth | |
| import googleapiclient.discovery | |
| API_NAME = "displayvideo" | |
| API_SCOPES = ["https://www.googleapis.com/auth/display-video"] | |
| API_VERSION = "v1" | |
| credentials, project = google.auth.default(scopes=API_SCOPES) | |
| print(f"Google Cloud Project ID: {project}.") |
| // Useage: =GPT3(prompt) | |
| // Example: =GPT3("This bot will generate a creative ad headline that is will increase views, clicks, and impressions, based on a website category.\n\nWebsite Category: tech\nHeadline: Why Google will win the AI wars\n\nWebsite Category: retail\nHeadline: Need a break? Check out our new fall selections now!\n\nWebsite Category: pharma\nHeadline: Are you ready for the next pandemic? Be prepared with your own pandemic survival kit today\n\nWebsite Category: travel\nHeadline: We noticed that cruise lines are super cheap now, find out why!\n\nWebsite Category: holiday\nHeadline: Partying for the holidays? Find a new coat to go out in!\n\nWebsite Category: sports\nHeadline:") | |
| class OpenAIApp { | |
| static get API_KEY_PROP() { | |
| return "OPENAI_API_KEY"; | |
| } | |
| constructor(apiKey) { | |
| this.apiKey = apiKey; |
Install https://github.com/doronz88/pymobiledevice3.
Get your device's UUID:
xcrun xctrace list devices
Mount the disk image:
sudo pymobiledevice3 mounter auto-mount
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Fill' '~^\U21A9' # Window > Fill: ^ + ⌥ + ↩ | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Center' '~^c' # Window > Center: ^ + ⌥ + c | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Left' '~^\UF702' # Window > Move & Resize > Left: ^ + ⌥ + ← | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Right' '~^\UF703' # Window > Move & Resize > Right: ^ + ⌥ + → | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Top' '~^\UF700' # Window > Move & Resize > Top: ^ + ⌥ + ↑ | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Bottom' '~^\UF701' # Window > Move & Resize > Bottom: ^ + ⌥ + ↓ | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Bottom Left' '~^j' # Window > Move & Resize > Bottom Left: ^ + ⌥ + j | |
| defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Bottom Rig |
If you want to use a keyboard shortcut to format your code on save, you can add one in System Settings > Keyboard > Keyboard Shortcuts... > App Shortcuts. Click the + button, choose Xcode as the application, type: Editor->Structure->Format File with ‘swift-format’ as the menu title, and then choose a keyboard shortcut like ⌘S by simply pressing the command+S keys.
Note
This should work for Xcode 16 and higher.
| # `sheldon` configuration file | |
| # ---------------------------- | |
| # | |
| # You can modify this file directly or you can use one of the following | |
| # `sheldon` commands which are provided to assist in editing the config file: | |
| # | |
| # - `sheldon add` to add a new plugin to the config file | |
| # - `sheldon edit` to open up the config file in the default editor | |
| # - `sheldon remove` to remove a plugin from the config file | |
| # |