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
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 | |
} |
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) |
#!/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 |
[Unit] | |
Description=supervisord - Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/supervisord -c /etc/supervisor/supervisord.conf | |
ExecReload=/usr/bin/supervisorctl reload | |
ExecStop=/usr/bin/supervisorctl shutdown |
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 1X deployment automation tool as well!
awesome gui dialogs to pick windows version and preset action
Auto Setup choice for upgrade directly without prompts, with edition change / intelligent fallback
Create ISO choice for authoring iso file directly via DIR2ISO snippet, including any 'oem' customizations
Create USB choice for authoring usb via native MCT, including any 'oem' customizations (prompts once)
Select in MCT choice for vanilla MCT processing without 'oem' modifications, script quits straightway
control via set script vars, commandline parameters or rename script likeiso 21H2 Pro MediaCreationTool.bat
#!/bin/sh | |
# Make sure to run this script in Framework folder to work properly. | |
# Create universal-framework.sh and copy all content to it. | |
# Provide FRAMEWORK_NAME to start build | |
# Globals Variables | |
# Avilable Platforms/Architectures | |
# macosx | iphoneos | iphonesimulator | appletvos | appletvsimulator | watchos | watchsimulator |
#!/bin/sh | |
# Make sure to run this script in Framework folder to work properly. | |
# Create universal-framework.sh and copy all content to it. | |
# Provide FRAMEWORK_NAME to start build | |
# Globals Variables | |
# Avilable Platforms/Architectures | |
# macosx | iphoneos | iphonesimulator | appletvos | appletvsimulator | watchos | watchsimulator |
struct Delegation<Input, Output> { | |
private(set) var callback: ((Input) -> Output?)? | |
mutating func delegate<Target: AnyObject>(to target: Target, _ callback: @escaping (Target, Input) -> Output) { | |
self.callback = { [weak target] (input) in | |
guard let target = target else { | |
return nil | |
} | |
return callback(target, input) | |
} |