Version 10.0.17134 Build 17134
- Settings -> Update & Security
- Install all updates
- launch Windows Powershell as administrator and execute:
using System; | |
using System.Runtime.InteropServices; | |
public class FxHook:IDisposable { | |
const int nBytes = 5; | |
IntPtr addr; | |
Protection old; | |
byte[] src = new byte[5]; |
<# | |
.NOTES | |
How to use: Open Visual Studio, go to Tools – External Tools to bring up the External Tools dialog, add a new tools menu with the following configuration: | |
Title: Manage User Secrets (Or whatever you want) | |
Command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (Path to powershell.exe) | |
Arguments: Path-to-this-script(e.g. D:\VisualStudioTools\usersecrets.ps1) | |
Initial Directory: $(ProjectDir) | |
.PARAMETER ProjectFilePath | |
The csproj file's path, or keep it empty to search *.csproj file in initial directory |
$extensionDisplayName = "Wix Toolset Visual Studio 2017 Extension"; | |
$extensionApiVersion = "api-version=3.2-preview.1" | |
$marketplaceQueryUrl = "https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery"; | |
$extensionQuery = "{`"flags`":`"262`"," + | |
"`"filters`":[" + | |
"{" + | |
"`"criteria`":" + | |
"[" + | |
"{`"filterType`":`"14`",`"value`":`"1033`"}," + |
$linkFilePath = "C:\Users\$([Environment]::UserName)\Desktop\WindowsTerminal.lnk" | |
$bytes = [System.IO.File]::ReadAllBytes($linkFilePath) | |
$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON | |
[System.IO.File]::WriteAllBytes($linkFilePath, $bytes) |
$EventLogSourceName = "Visual Studio Updater" | |
if([System.Diagnostics.EventLog]::SourceExists($EventLogSourceName) -eq $false){ | |
New-EventLog –LogName Application –Source $EventLogSourceName | |
} | |
$cacheDirs = @( | |
"C:\Program Files (x86)\Microsoft Visual Studio\Installer" | |
); | |
foreach($cacheDir in $cacheDirs){ |
#!/bin/bash | |
# | |
# Notify of Homebrew updates via Notification Center on Mac OS X | |
# | |
# Author: Chris Streeter http://www.chrisstreeter.com | |
# Requires: terminal-notifier. Install with: | |
# gem install terminal-notifier | |
TERM_APP='/Applications/Terminal.app' | |
BREW_EXEC='/usr/local/bin/brew' |
#!/bin/bash | |
# | |
# Notify of Homebrew updates via Notification Center on Mac OS X | |
# | |
# Author: Chris Streeter http://www.chrisstreeter.com | |
# Requires: terminal-notifier. Install with: | |
# brew install terminal-notifier | |
TERM_APP='/Applications/Terminal.app' | |
BREW_EXEC='/usr/local/bin/brew' |
#!/bin/bash | |
# encode.sh | |
# | |
# Copyright (c) 2013 Don Melton | |
# | |
# This version published on June 7, 2013. | |
# | |
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3, | |
# iOS, OS X, etc. |
#requires -version 3 | |
[CmdletBinding()] | |
param ( | |
[string] | |
$Path | |
) | |
function Get-MD5 { | |
param ( | |
[Parameter(Mandatory)] |