This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source networking configuration. | |
. /etc/clearos/network.conf | |
# Bail if not ipv4 | |
if [ "$FW_PROTO" != 'ipv4' ]; then | |
return 0 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
Param() | |
$VMPath = "D:\VMs" | |
$VMName = "ClearOS" | |
$VHDPath = Join-Path -Path $VMPath -ChildPath "$VMName\Virtual Hard Disks\$VMName.VHDX" | |
$ISOPath = "I:\ISO\ClearOS-DVD-x86_64.iso" | |
# Creating new 20GB fixed VHDX. | |
New-VHD -Path $VHDPath -SizeBytes 20GB -Fixed -Verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
PARAM() | |
# Returns IP address of a network adapter | |
function Get-IPInfo() | |
{ | |
[CmdletBinding()] | |
PARAM( | |
[Parameter(Mandatory=$True)] | |
[ValidateSet('IPv4','IPv6','IPv6LinkLocal')] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
PARAM() | |
# Returns IP address of a network adapter | |
function Get-IPInfo() | |
{ | |
[CmdletBinding()] | |
PARAM( | |
[Parameter(Mandatory=$True)] | |
[ValidateSet('IPv4','IPv6','IPv6LinkLocal')] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; |
NewerOlder