Download the user.js file and then drop it into your chrome://extensions/ tab and enjoy the
button on your gists!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Process: 1Password 5 [15513] | |
| Path: /Applications/1Password 5.app/Contents/MacOS/1Password 5 | |
| Identifier: com.agilebits.onepassword4 | |
| Version: ??? | |
| Code Type: X86-64 (Native) | |
| Parent Process: ??? [1] | |
| Responsible: 1Password 5 [15513] | |
| User ID: 501 | |
| Date/Time: 2014-10-24 14:11:50.300 +1100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # This will take the two non-system disks on an AWS windows server 2012 R2 instance and ERASE THEM; creating a single striped Volume. | |
| # WARNING: Before using this be sure to check that ((Get-Disk) |where issystem -eq $false) are actually the ***DISKS YOU WANT ERASED*** | |
| # | |
| #Get ephemeral disk | |
| $ephemeralDisks = (Get-Disk) |where issystem -eq $false | |
| if ($ephemeralDisks.Count -ne 2) {throw "Not correct amount of disks. Expecting 2"} | |
| #Prepare diskpart Script for each disk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $remoteCode = { | |
| #Passing in two parameters | |
| param( | |
| [Parameter(Position=0, Mandatory=$true)][ValidateNotNullOrEmpty()][Int]$jobLoop, | |
| [Parameter(Position=1, Mandatory=$true)][ValidateNotNullOrEmpty()][Int]$jobCount | |
| ) | |
| $job = { | |
| param( | |
| [Parameter(Position=0, Mandatory=$true)][ValidateNotNullOrEmpty()][String]$jobParam |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host 'throw' | |
| try | |
| { | |
| try | |
| { | |
| throw "exception" | |
| } | |
| catch | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $throwError = "" | |
| try { | |
| throw "exception has occured! Failure text" | |
| } catch { | |
| #Catch throw test | |
| $throwError = $_ | |
| } finally { | |
| if ([bool]$throwError) { | |
| Write-Host "$throwError" | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #get instances with specific tag | |
| $tagFilter1 = New-Object Amazon.EC2.Model.Filter | |
| $tagFilter1.Name = "tag:Environment Name" | |
| $tagFilter1.Value.Add("MyEnv") | |
| $instances = Get-EC2Instance -Filter @($tagFilter1) | |
| #New or update tag on instances | |
| foreach ($i in $instances.Instances) { | |
| New-EC2Tag -ResourceId $i.InstanceId -Tags @(@{ Key="YourTagName"; Value="YourTagValue" }) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook] | |
| "Bitness"="x64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Proxy Alias | |
| alias proxyon="echo -e \"proxy = http://user:password@proxyserver:8080\n\" > ~/.curlrc && export http_proxy='http://user:password@proxyserver:8080';export https_proxy='http://user:password@proxyserver:8080'" | |
| alias proxyoff="export http_proxy='';export https_proxy='' && rm ~/.curlrc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" | |
| xmlns:a="http://www.w3.org/2005/08/addressing" | |
| xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
| <s:Header> | |
| <a:Action s:mustUnderstand="1">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</a:Action> | |
| <a:To s:mustUnderstand="1">https://youradfsserver.com.au/adfs/services/trust/13/usernamemixed</a:To> | |
| <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> | |
| <o:UsernameToken u:Id="uuid-6a13a244-dac6-42c1-84c5-cbb345b0c4c4-1"> | |
| <o:Username>[email protected]</o:Username> | |
| <o:Password>password</o:Password> |