Skip to content

Instantly share code, notes, and snippets.

[general]
name = CHAPI# human friendly name
modulefile = chapi.py# Actual module to import to load plugins
enabled = True
#!/bin/bash
#Guacamole 0.9.0 Installation Script
#Versioning Variables
guacamoleclientdownload = "http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.9.0.war"
guacamoleserverdownload = "http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.0.tar.gz"
guacamoleservertar = "guacamole-server-0.9.0.tar.gz"
guacamoleserversource = "guacamole-server-0.9.0"
guacamoleclientwar = "guacamole-0.9.0.war"
. .\Config.ps1 # $username = 'blah'\n$password = 'blah'
Add-Type -Path .\WebDriver.dll
$msdn = 'https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=13&ct=1470967868&rver=6.7.6640.0&wp=mcmbi&wlcxt=msdn%24msdn%24msdn&wreply=https%3a%2f%2fmsdn.microsoft.com%2fen-us%2fsubscriptions%2fdownloads%2f&lc=1033&id=254354&mkt=en-us'
$driverService = [OpenQA.Selenium.PhantomJS.PhantomJSDriverService]::CreateDefaultService()
$driverService.HideCommandPromptWindow = true;
$selenium = [OpenQA.Selenium.PhantomJS.PhantomJSDriver]::new($driverService)
$selenium.Navigate().GoToUrl($msdn)
@EntityReborn
EntityReborn / Get-MsdnKeys.ps1
Created August 12, 2016 15:50 — forked from Jaykul/Get-MsdnKeys.ps1
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)