Skip to content

Instantly share code, notes, and snippets.

View rchaganti's full-sized avatar
Slow to respond.

Ravikanth C rchaganti

Slow to respond.
View GitHub Profile
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
@rchaganti
rchaganti / Get-PythonMSI.ps1
Last active August 29, 2015 14:01
Download latest Python MSI from python.org/downloads
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
@rchaganti
rchaganti / Get-PythonDownloads.ps1
Created May 28, 2014 14:05
Get Python download MSI object
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
@rchaganti
rchaganti / test-url.ps1
Created May 28, 2014 13:48
Test a URL!
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url
)
Process {
if ([system.uri]::IsWellFormedUriString($Url,[System.UriKind]::Absolute)) {
@rchaganti
rchaganti / PodcastDownloader.ps1
Created May 28, 2014 08:58
Download Podcasts and Channel9 feeds using PowerShell
$feed = "http://channel9.msdn.com/Shows/Azure-Friday/feed/mp4high"
$destination = "AzureFriday"
mkdir "~\Desktop\${destination}"
cd "~\Desktop\${destination}"
$a = ([xml](new-object net.webclient).downloadstring($feed))
$a.rss.channel.item | foreach{
$url = New-Object System.Uri($_.enclosure.url)
@rchaganti
rchaganti / testazure.ps1
Created May 2, 2014 09:16
Testing Azure
Write-Host "Testing Azure Script Extension"