Popular Posts

1 minute read

Posts:

  1. Azure:
  2. Terraform Setup:
  3. Terraform Main Strategy:
  4. Terraform:
  5. Git:
  6. Powershell:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    
    $URI = "https://api.github.com/repos/gerryw1389/powershell/releases/latest"
    
    # Prevent "Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel."
    # This is because Powershell uses 1.0 and most sites require 1.2
    [Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls11, Tls, Ssl3"
    $Response = Invoke-RestMethod -Method Get -Uri $URI
    $ZipUrl = $Response.zipball_url
    
    # Download the file to the current location
    $OutputPath = "$((Get-Location).Path)\$($Response.name.Replace(" ","-")).zip"
    Invoke-RestMethod -Method Get -Uri $ZipUrl -OutFile $OutputPath
    
  7. Python:
  8. General:
  9. Specific actions:
  10. Other:

Tags:

Updated:

Comments