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 | |
} |
#!/bin/bash | |
TAGS="TODO:|FIXME:|WARNING:" | |
ERRORTAG="ERROR:" | |
OUTPUT=$(find "${SRCROOT}" -name "*.h" -or -name "*.m" -or -name "*.swift" \( -not -path "${SRCROOT}/Carthage/*" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/") | |
ECHO "$OUTPUT" | |
if [[ $OUTPUT == *" error: "* ]] |
This utility helps you to configure docker containers IPs into host file to manage containers with hostname instead of IPs. Whther you want to access the container or redirect traffic to that container like using nginx, it worked. You don't have to configure or manually edit the host file to maintain the IPs.
Prerequisites
jq
utility. For example in Ubunut or debian based OS sudo apt install jq -y