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
| $Settings = New-Object PsObject -Property @{ | |
| Name = Read-Host "VM Name" | |
| vCPU = Read-Host "vCPU Count" | |
| MemoryStartupBytes = [int]$(Read-Host "GB of RAM") * 1GB | |
| ImgSrc = Read-Host "Source VHD Location" | |
| } | |
| $vmhost = Get-VMHost | |
| if ((Get-VM -Name $Settings.Name -ErrorAction SilentlyContinue) -or (Test-Path -Path "$($vmhost.VirtualHardDiskPath)\$($Settings.Name).vhdx")) { |
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
| [string]$UserName = "myJenkinsUser" | |
| [string]$Jenkins_Token = "myJenkinsUserApiKey" | |
| [uri]$Build_URL = "http://jenkins.local/job/myAwesomeApp/latest/" | |
| $Headers = @{ | |
| "Authorization" = "Basic " + [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("${UserName}:${Jenkins_Token}")) | |
| } | |
| $jobObj = Invoke-RestMethod -Headers $Headers -Uri "${Build_URL}/api/json" | |
| $jobObj |
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
| Param ( | |
| [string]$VMName, | |
| [int]$vCPU, | |
| [int]$MemoryGB | |
| ) | |
| $Settings = New-Object PsObject -Property @{ | |
| Name = $VMName | |
| vCPU = $vCPU | |
| MemoryStartupBytes = [int]$MemoryGB * 1GB |
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
| def env = System.getenv() | |
| env.each{ | |
| println it | |
| } | |
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
| <?php | |
| /** | |
| * Ensures an ip address is both a valid IP and does not fall within | |
| * a private network range. | |
| */ | |
| function validate_ip($ip) { | |
| if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) { | |
| return false; | |
| } | |
| return true; |
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 ( | |
| [Parameter()] | |
| [string] | |
| $aws_profile = "VirtixProd", | |
| [Parameter()] | |
| [string[]] | |
| $aws_region = @("us-east-2"), |
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
| #!/usr/bin/env bash | |
| # Load env vars (compatible with Komodo) | |
| export $(cat .env | grep -vE '^#|^$|^USER_LOCALES' | xargs) | |
| # Make directories (if not exists) | |
| mkdir -p "${HOME_DIR}" | |
| mkdir -p "${SHARED_SOCKETS_DIR}"/{home,.X11-unix,pulse} | |
| mkdir -p "${GAMES_DIR}" |
OlderNewer