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
@rchaganti
rchaganti / testazure.ps1
Created May 2, 2014 09:16
Testing Azure
Write-Host "Testing Azure Script Extension"
@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 / 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 / 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 / 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
)
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url
)
Process {
if ([system.uri]::IsWellFormedUriString($Url,[System.UriKind]::Absolute)) {
$true
@rchaganti
rchaganti / Open-FWLink.ps1
Last active August 29, 2015 14:04
Open FW Links
@rchaganti
rchaganti / Reset-AzureVMUserPassword.ps1
Created August 13, 2014 16:17
Reset-AzureVMUserPassword
Function Reset-AzureVMUserPassword {
param (
[String]
$VMName,
[String]
$ServiceName,
[PSCredential]
$Credential
@rchaganti
rchaganti / Get-AzureStatus.ps1
Last active August 29, 2015 14:05
Get Azure Service Status alerts
Function Get-AzureStatus {
$response = Invoke-RestMethod -Uri 'http://azure.microsoft.com/en-us/status/feed/'
if ($response) {
foreach ($item in $response) {
Write-Host "$($item.Title) : " -NoNewline
Write-Host -ForegroundColor Red "$($item.Description)"
}
} else {
Write-Host -ForegroundColor Green "All is well!"
}