Requirements:
- crazymax/cloudflared
- pihole docker image
- pi-hole br0 ip address, such as 192.168.1.5
- cloudflared br0 ip adderss, such as 192.168.1.10
- Configure the following parameters in pihole docker image:
## install homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
## install zulu via brew | |
brew install --cask zulu | |
## create new dir for dataloader and swt | |
mkdir -p ~/dataloader | |
mkdir -p ~/swt_m1 | |
## download dataloader | |
curl -L https://github.com/forcedotcom/dataloader/files/6172623/dataloader_mac_arm64.zip --output ~/dataloader/dataloader.zip | |
## download swt to ~/swtm1 .. (I can't get cURL to work for the swt.zip m1 zip) and unzip it |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
echo "Updating homebrew..." | |
brew update |
[CmdletBinding()] | |
param( | |
[Parameter( Mandatory, Position = 1, ValueFromPipelineByPropertyName, ValueFromPipeline )] | |
[Alias( 'HostName', 'Server' )] | |
[string[]] | |
$ComputerName, | |
[System.DirectoryServices.ActiveDirectory.SyncFromAllServersOptions] | |
$SyncOptions = @( 'CrossSite', 'PushChangeOutward', 'SkipInitialCheck' ), |
jenkins: | |
systemMessage: | | |
Welcome to our build server. | |
This Jenkins is 100% configured and managed 'as code'. | |
Config is now mostly handled by the 'Jenkins Configuration as Code' (JCasC) plugin. | |
JCasC config can be found in the jenkins.yaml file in the $JENKINS_HOME folder. | |
Some settings are still injected from init.groovy.d scripts, | |
but these settings will be ported over to JCasC as support becomes available. |
Requirements:
Some Jenkinsfile examples |
using namespace HtmlAgilityPack | |
function Get-HTMLTable { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory,ValueFromPipeline)][HtmlNode]$HtmlDocument | |
) | |
process { | |
foreach ($table in $HtmlDocument.SelectNodes('//table')) { |
Requirements: