this is the basic configuration for nextdns combine with pfSense dns resolver to use both.
SSH access is turned off by default on pfSense. To enable it, go to System -> Advanced -> Enable Secure Shell
#!/usr/bin/env bash | |
mkdir realvncserversetup && cd realvncserversetup | |
echo 'Adding armhf arch' | |
sudo dpkg --add-architecture armhf && sudo dpkg --print-foreign-architectures | |
echo 'Update Repositories' | |
sudo apt update && sudo apt upgrade -y |
public extension NSObject { | |
func findTopViewController(vc: UIViewController) -> UIViewController { | |
if (vc.presentedViewController != nil) { | |
return UIViewController().findTopViewController(vc:vc.presentedViewController!) | |
} else if (vc.isKind(of: AKSideMenu.self)) { | |
let rvc = vc as! AKSideMenu | |
if let left = rvc.leftMenuViewController { | |
return UIViewController().findBestVC(vc: left) |
public extension UIViewController { | |
class func initializeFromStoryboard(storyboardName: CONSTANTS.StoryboardName, bundle: Bundle? = nil, identifier: String = "") -> Self { | |
return initializeFromStoryboard(storyboardName: storyboardName.rawValue, bundle: bundle, identifier: identifier) | |
} | |
class func initializeFromStoryboard(storyboardName: String, bundle: Bundle? = nil, identifier: String = "") -> Self { | |
let storyboard = UIStoryboard(name: storyboardName, bundle: bundle) | |
if let controller = initializeFromStoryboard(storyboard: storyboard, type: self, identifier: identifier) { | |
return controller | |
} |