Skip to content

Instantly share code, notes, and snippets.

View amandeeprehal-lab49's full-sized avatar

Amandeep Rehal amandeeprehal-lab49

View GitHub Profile
@amandeeprehal-lab49
amandeeprehal-lab49 / MiniKubeFailingToPullImages.md
Last active July 15, 2021 13:04
TWL-Lab49/Kubernetes - Minikube - Hyperkit: VM is unable to access k8s.gcr.io or pull images

Problem - Minikube is coming up but could not connect to internet or pull images.
Environment - Hyperkit driver on Mac even if VPN is off

If you are following instructions on this page https://minikube.sigs.k8s.io/docs/start/ to start minikube on Mac using Hyperkit driver and if its failings saying VM is unable to access k8s.gcr.io, please use below command to start it -

minikube start --vm-driver=hyperkit --hyperkit-vpnkit-sock=auto 

@amandeeprehal-lab49
amandeeprehal-lab49 / AutoRotateAndFullScreen.md
Last active May 14, 2024 12:45
TWL-Lab49/AVPlayer auto rotate and programmatically enter full screen when device switched to landscape orientation with SwiftUI

iOS 14 version plus, AVPlayer that supports auto rotate and programmatically enter full screen when device switched to landscape orientation with SwiftUI

import SwiftUI
import AVKit

@available(iOS 14.0, *)
struct AutoRotate: View {
    @State private var showFullScreen = false
    let url: URL