Skip to content

Instantly share code, notes, and snippets.

View patriklindstrom's full-sized avatar
🖼️
At home

Patrik Lindström patriklindstrom

🖼️
At home
View GitHub Profile
@Jaykul
Jaykul / Get-MsdnKeys.ps1
Last active August 3, 2022 20:28
PowerShell + Selenium Demo: Getting Started, and reusing cookies with Invoke-Request
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code
#requires -Version 5.0
param(
# Your Live ID for MSDN login
[Parameter(Mandatory)]
[PSCredential]
[System.Management.Automation.CredentialAttribute()]
$Credential,
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file)
@Dalmirog-zz
Dalmirog-zz / ArtifactDownload.ps1
Created March 23, 2016 21:41
Download Artifact from same release by name
<#
This script will list all the artifacts related to this release and then It'll download
the one declared on the variable $ArtifactName to the path $downloadPath
Lets say you create an artifact when you deploy to Staging and you want to download
it during your deployment to Production. This script will use the current release ID at the time of the Prod deployment (which would be shared
between your deployment to Stage and to Prod) and then It'll use the octopus API to fetch the artifact.
#>
##Config (What you need to touch)
@rbirkby
rbirkby / oneliners.cs
Created June 2, 2011 17:12
10 C# One Liners to Impress Your Friends
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml.Linq;
class TenCSharpOneLiners
{
static void Main()
{