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
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
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
| #Requires -version 2 | |
| #Requires -RunAsAdministrator | |
| <# | |
| .SYNOPSIS | |
| <A brief description of the function or script. This keyword can be used only once in each topic.> | |
| .DESCRIPTION | |
| <A detailed description of the function or script. This keyword can be used only once in each topic.> | |
| .PARAMETER <Parameter-Name> |
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
| (77,101,114,114,121,32,67,104,114,105,115,116,109,97,115,32,97,110,100,32,97,32,72,97,112,112,121,32,78,101,119,32,89,101,97,114 | ForEach-Object {[char][byte]$psitem}) -join '' |
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
| System.Text.Encoding enc = System.Text.Encoding.ASCII; | |
| byte[] myByteArray = enc.GetBytes("a text string"); | |
| string myString = enc.GetString(myByteArray ); |
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
| Add-Type -AssemblyName presentationCore | |
| Add-Type -AssemblyName System.speech | |
| $mediaPlayer = New-Object system.windows.media.mediaplayer | |
| $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
| $files = Get-ChildItem -path $path -include *.mp3 -recurse | |
| #$speak.Rate = -10 # -10 to 10; -10 is slowest, 10 is fastest` | |
| $speak.Speak("Ho Ho Ho") | |
| $mediaPlayer.open([uri]"$(Get-Random -InputObject $files)") | |
| $mediaPlayer.Play() | |
| #Start-Sleep -Seconds 30 |
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
| function Invoke-Ping { | |
| <# | |
| .SYNOPSIS | |
| Ping or test connectivity to systems in parallel | |
| .DESCRIPTION | |
| Ping or test connectivity to systems in parallel | |
| Default action will run a ping against systems |
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
| $URLs = "https://aka.ms/wsl-ubuntu-1804" ,"https://aka.ms/wsl-ubuntu-1804-arm" ,"https://aka.ms/wsl-ubuntu-1604" ,"https://aka.ms/wsl-debian-gnulinux" ,"https://aka.ms/wsl-kali-linux" ,"https://aka.ms/wsl-opensuse-42" ,"https://aka.ms/wsl-sles-12" | |
| $ProgressPreference = 'SilentlyContinue' | |
| $ErrorActionPreference = 'Stop' | |
| Foreach($URL in $URLs){ | |
| $Filename = "$(Split-Path $URL -Leaf).appx" | |
| Write-Host "Downloading: $Filename" -Foreground Yellow -NoNewline | |
| try{ | |
| Invoke-WebRequest -Uri $URL -OutFile $Filename -UseBasicParsing | |
| Add-AppxPackage -Path $Filename |
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
| $URL = 'https://aka.ms/wsl-ubuntu-1804' | |
| $Filename = "$(Split-Path $URL -Leaf).appx" | |
| $ProgressPreference = 'SilentlyContinue' | |
| Invoke-WebRequest -Uri $URL -OutFile $Filename -UseBasicParsing | |
| Invoke-Item $FileName |
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
| Add-ADGroupMember -Identity 'New Group' -Members (Get-ADGroupMember -Identity 'Old Group' -Recursive) |