Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@henrysher
henrysher / reinvent.md
Last active July 9, 2021 07:38
link for reinvent slides
@lawrencegripper
lawrencegripper / invokeWithCookie.ps1
Last active January 18, 2024 06:34
Invoke-webrequest With Cookie
$downloadToPath = "c:\somewhere\on\disk\file.zip"
$remoteFileLocation = "http://somewhere/on/the/internet"
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
$cookie = New-Object System.Net.Cookie
$cookie.Name = "cookieName"
$cookie.Value = "valueOfCookie"
@mike-ward
mike-ward / BlogConfiguration.cs
Last active December 16, 2015 15:09
Custom Configuration Section for Web.config
using System.Configuration;
namespace bloget2.Models
{
public class BlogConfiguration : ConfigurationSection
{
[ConfigurationProperty("title", IsRequired = true)]
public string Title
{
get { return this["title"] as string; }