I hereby claim:
- I am randomvariable on github.
- I am randomvariable (https://keybase.io/randomvariable) on keybase.
- I have a public key whose fingerprint is F4D2 C447 1871 16A1 6CD2 A743 3E6C B2D0 9DC4 D5D0
To claim this, I am signing this object:
| aws rds describe-db-parameters --db-parameter-group-name <Parameter Group Name> | jq '.Parameters[] | select(.ParameterValue != null) | .ParameterName + "=" + .ParameterValue' |
| #!/usr/bin/env ruby | |
| require 'aws-sdk' | |
| @cw = AWS::CloudWatch::Client.new | |
| @rds = AWS::RDS::Client.new | |
| instances = @rds.describe_db_instances[:db_instances] | |
| instances.map do |i| | |
| id = i[:db_instance_identifier] | |
| allocated_storage = i[:allocated_storage] |
I hereby claim:
To claim this, I am signing this object:
| Function New-PivotKlaxon | |
| { | |
| Add-Type -AssemblyName PresentationCore | |
| $song = [uri](Join-Path (Split-Path -parent $PSCommandPath) "klaxon.mp3") | |
| $MediaPlayer = New-Object System.Windows.Media.MediaPlayer | |
| $voice = new-object -com SAPI.SpVoice | |
| $MediaPlayer.Open($song) | |
| while( $MediaPlayer.NaturalDuration.TimeSpan.TotalMilliseconds -eq $null) | |
| { | |
| start-sleep -milliseconds 100 |
| Script MongoDBAdminConfiguration | |
| { | |
| SetScript = | |
| { | |
| import-module gac | |
| Add-Type -AssemblyName (Get-GACAssembly "MongoDB.Bson") | |
| Add-Type -AssemblyName (Get-GACAssembly "MongoDB.Driver") | |
| $client = new-object MongoDB.Driver.MongoClient("mongodb://localhost") | |
| $server = $client.GetServer() | |
| $adminDB = $server.GetDatabase("admin") |
| # Create a Windows Identity Principal (note the cast) | |
| $principal = [Security.Principal.WindowsPrincipal](new-object System.Security.Principal.WindowsIdentity("<username>@<domain>")) | |
| # Check if it is a member of a group | |
| $princial.IsInRole("<domain>\<group name>") | |
| # Other useful things you can do: | |
| $identity = (new-object System.Security.Principal.WindowsIdentity("<username>@<domain>")) |
| Add-Type -TypeDefinition @" | |
| using System; | |
| using System.Management.Automation; | |
| [AttributeUsageAttribute(AttributeTargets.Class)] | |
| public class NewCustomAttribute : CmdletCommonMetadataAttribute { | |