So if you're using Proxmox you need to open up ssh and run the following commands:
- Setup a root password
 
sudo passwd root| struct OverflowLayout: Layout { | |
| var spacing = CGFloat(10) | |
| func sizeThatFits(proposal: ProposedViewSize, subviews: Subviews, cache: inout ()) -> CGSize { | |
| let containerWidth = proposal.replacingUnspecifiedDimensions().width | |
| let sizes = subviews.map { $0.sizeThatFits(.unspecified) } | |
| return layout(sizes: sizes, containerWidth: containerWidth).size | |
| } | |
| func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout ()) { | 
| struct Selectables<Data, ID: Hashable, Content>: View where Content: View { | |
| let data: [Data] | |
| @Binding var selectedIds: [ID] | |
| let id: KeyPath<Data, ID> | |
| let content: (Data, Binding<Bool>) -> Content | |
| init(_ data: [Data], selectedIds: Binding<[ID]>, id: KeyPath<Data, ID>, @ViewBuilder content: @escaping (Data, Binding<Bool>) -> Content) { | |
| self.data = data | |
| self._selectedIds = selectedIds | |
| self.id = id | 
| /graphql/30bHSx-YYMzaygsBwfhftA/AddRemoveUserFromList | |
| /graphql/xIZJPQBK0Zz62_BDLNLHKw/AddSuperFollowPrivacy | |
| /graphql/R1ks8NLVisD-416R3mAk_w/AllSubscribedListsTimeline | |
| /graphql/nxtTgq_TxeEDm0gmsGqK_Q/ArticleTweetsTimeline | |
| /graphql/zacmhLyVLzFAKvH-yia8OA/AudiospaceAddSharing | |
| /graphql/IZ1drq74xph2Gym7gGgtRw/AudiospaceBrowseSpaceTopicsQuery | |
| /graphql/N80MQ7fkrpuq1-kCWVSvzQ/AudiospaceByRestId | |
| /graphql/PTAe3LYPhlCcPJtwpyyx-w/AudiospaceDeleteSharing | |
| /graphql/NiYfwFZDe-90MSqpGEI16w/AudiospaceGiveawayTickets | |
| /graphql/g1mB1D5y3z_NkFsN-FwZdA/AudiospaceIsSubscribedQuery | 
| # 1. Create 'ci_scripts' folder in your main project directory | |
| # 2. Create 'ci_post_xcodebuild.sh' inside of it | |
| # 3. Make it an executable by running 'chmod +x $ci_post_xcodebuild.sh' | |
| set -e # fails build if any command fails | |
| if [ ${CI_XCODEBUILD_EXIT_CODE} != 0 ] | |
| then | |
| exit 1 | |
| fi | 
| # Script to login to ToF on PlayCover | |
| # Select the ToF version | |
| echo "Please select the region of ToF you want to login to:" | |
| echo "[1] Global" | |
| echo "[2] China" | |
| read -p "Enter your choice: " choice | |
| if [ $choice -eq 1 ]; then | 
| import UIKit | |
| import PlaygroundSupport | |
| import Foundation | |
| PlaygroundPage.current.needsIndefiniteExecution = true | |
| //URLSessionTaskDelegate | |
| //You use this protocol in one of two ways, depending on how you use a URLSession: | |
| //If you create tasks with Swift’s async-await syntax, using methods like bytes(for:delegate:) and data(for:delegate:), you pass a delegate argument of this type. The delegate receives callbacks for things like task progress, while the call point awaits the completion of the task. A delegate that receives life cycle and authentication challenge callbacks as the transfer progresses. | |
| //If you add tasks to the session with methods like dataTask(with:) and downloadTask(with:), then you implement this protocol’s methods in a delegate you set on the session. This session delegate may also implement other protocols as appropriate, like URLSessionDownloadDelegate and URLSessionDataDelegate. You can also assign a delegate of this type directly to the task to intercept callbacks before the task deliver | 
This document summarizes notes taken to make VMWare Fusion 13 Player work on Apple M1 Pro. It builds upon a previous (deprecated) document based on VMWare Tech Preview 21H1
VMWare Fusion 13 was released on November 17, 2022 and Fusion 13.5 on October 19, 2023
Created on: November 20, 2022
Updated on: June 1, 2024
| // | |
| // Created by Szymon Błaszczyński on 26/08/2021. | |
| // | |
| import Foundation | |
| import MetalKit | |
| import SwiftUI | |
| struct MetalView: NSViewRepresentable { | |
| func makeCoordinator() -> Coordinator { | 
| // Created by Helge Heß 2021-06-17 | |
| import Foundation | |
| // They use obfuscated names to hide it from us! | |
| import JavaScriptCore | |
| /// Setup our async/await runtime. | |
| let runtime = JSContext()! |