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 Update-dotNETVideo | |
{ | |
[CmdletBinding()] | |
param ( | |
# A path to subtitle file of folder where the subtitles are located. | |
[Parameter(Mandatory = $true, | |
ValueFromPipeline = $true, | |
ValueFromPipelineByPropertyName = $true, | |
ValueFromRemainingArguments = $false, | |
Position = 0, |
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
#from http://lostechies.com/erichexter/2012/11/02/download-all-the-build-videos-while-you-sleep/ | |
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath | |
$rss = (new-object net.webclient) | |
#Set the username for windows auth proxy | |
$rss.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials | |
$a = ([xml]$rss.downloadstring("http://channel9.msdn.com/Events/Build/2012/RSS/wmvhigh")) | |
$a.rss.channel.item | foreach{ | |
$url = New-Object System.Uri($_.enclosure.url) | |
$file = $url.Segments[-1] |
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
$sourcePath = 'HKLM:\software\Microsoft\Speech_OneCore\Voices\Tokens' #Where the OneCore voices live | |
$destinationPath = 'HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens' #For 64-bit apps | |
$destinationPath2 = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\SPEECH\Voices\Tokens' #For 32-bit apps | |
cd $destinationPath | |
<#cleanup | |
$listOldVoices = Get-ChildItem $destinationPath | |
foreach($voice in $listOldVoices) { | |
if ($voice.PSChildName.StartsWith("TTS_") -or $voice.PSChildName.StartsWith("IVONA 2")) { | |
$path = $voice.PSPath | |
Remove-Item -Path $path -Recurse |
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
#!/bin/sh | |
# Convert ANSI (terminal) colours and attributes to HTML | |
# Licence: LGPLv2 | |
# Author: | |
# http://www.pixelbeat.org/docs/terminal_colours/ | |
# Examples: | |
# ls -l --color=always | ansi2html.sh > ls.html | |
# git show --color | ansi2html.sh > last_change.html |
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 5.1 | |
Function Test-IsWindowsTerminal { | |
[cmdletbinding()] | |
[Outputtype([Boolean])] | |
Param() | |
Write-Verbose "Testing processid $pid" |
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 AutoHotkey v2.0 | |
OnMessage( 0xF, PaintTitle) | |
OnMessage( 0x14, EraseBkgnd) | |
OnMessage( 0x83, NcCalcSize) | |
OnMessage( 0x84, NcHitTest) | |
OnMessage( 0xA4, NcRButtonDown) | |
OnMessage( 0x2A2, NcMouseLeave) |
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
Option Explicit | |
Private fileName As String | |
Public Sub ExportProperties() | |
On Error GoTo ErrorHandler | |
Let fileName = InputBox("Export properties to ...", "Export", fileName) | |
Open fileName For Output As #1 |
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
@ECHO OFF | |
rem Работаем с Rar5, если это не нужно удалить ключи -ma | |
ECHO ┌─────────────────────────────────────────────────┐ | |
ECHO │ Бекап шаблонов Word/Excel/Outlook │ | |
ECHO └─────────────────────────────────────────────────┘ | |
"C:\Program Files\WinRAR\rar.exe" a -ma -pbak -ed -ep -dh -m5 -s -idcd -agYYYY-MM-DD -r "F:\Backups\VBA.bak\" "%userprofile%\AppData\Roaming\Microsoft\Шаблоны\Normal.dotm" "%userprofile%\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.XLSB" | |
ECHO. |
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
Sub Macro1() | |
' 挿入/変更/削除以外の変更履歴を一括承諾する | |
' https://docs.microsoft.com/ja-jp/office/vba/api/word.wdrevisiontype | |
For Each myRev In ActiveDocument.Revisions | |
myType = myRev.Type | |
Select Case myType | |
Case _ | |
wdRevisionDisplayField, _ | |
wdRevisionParagraphNumber, _ | |
wdRevisionParagraphProperty, _ |
NewerOlder