This file contains 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
Disable-UAC | |
# TODO: unpin Edge and Store and pin default apps | |
# SilentlyContinue — Don't display an error message continue to execute subsequent commands. | |
# Continue — Display any error message and attempt to continue execution of subsequence commands. | |
# Inquire — Prompts the user whether to continue or terminate the action | |
# Stop — Terminate the action with error. | |
$ErrorActionPreference = 'Continue' |
This file contains 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
<# | |
The command to run, built from the raw link of this gist | |
Win+R | |
iexplore http://boxstarter.org/package/url?<RAW GIST LINK> | |
OR (if you don't like the way the web launcher force re-installs everything) |
This file contains 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 needs to be executed multiple times, because it will crash with an out of memory exception. | |
// Once an assembly has been loaded with `Assembly.LoadFile()`, it cannot be unloaded again. The | |
// +10K DLLs to load will eat up all your memory, but the script will resume at the DLL that | |
// crashed the process, when it is restarted. | |
void Main() { | |
// Adjust those paths. | |
var resultStore = @"C:\Users\bert\Desktop\vs-style-baml-files.txt"; | |
var lastFileStore = @"C:\Users\bert\Desktop\vs-baml-files.last.txt"; | |
// Make sure this file exists (empty). |
This file contains 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
//********************************************************// | |
// HOW TO: | |
// Create a file called devenv.pkgundef in the same directory as devenv.exe. | |
// It's usually located at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE | |
// Then call "devenv.exe /updateconfiguration" from an elevated command prompt. | |
// REMARKS: | |
// Each GUID below represent a package that Visual Studio is loading. This is the | |
// list of package that I personally don't ever use. You can modify the list of |
This file contains 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
public static BitmapSource GetImage(ImageMoniker moniker, int size) | |
{ | |
ImageAttributes imageAttributes = new ImageAttributes(); | |
imageAttributes.Flags = (uint)_ImageAttributesFlags.IAF_RequiredFlags; | |
imageAttributes.ImageType = (uint)_UIImageType.IT_Bitmap; | |
imageAttributes.Format = (uint)_UIDataFormat.DF_WPF; | |
imageAttributes.LogicalHeight = size; | |
imageAttributes.LogicalWidth = size; | |
imageAttributes.StructSize = Marshal.SizeOf(typeof(ImageAttributes)); |
This file contains 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
Usage: VSIXInstaller.exe [/quiet] [/admin] [/skuName:name /skuVersion:version] </uninstall:vsixID | vsix_path> | |
- OPTIONS - | |
/quiet | |
Suppresses the UI. Short form is '/q'. | |
/admin | |
The extension will be installed to the admin extensions location. Short form is '/a'. |
This file contains 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
On the package | |
[ProvideAutoLoad(UIContexts.LoadContext)] | |
[ProvideUIContextRule(UIContexts.LoadContext, | |
"RightFileTypeOpen", | |
"(CSharpFileOpen | VBFileOpen)", | |
new[] { "CSharpFileOpen", "VBFileOpen" }, | |
new[] { "ActiveEditorContentType:CSharp", "ActiveEditorContentType:Basic" })] | |
In the VSCT |
This file contains 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
<# | |
.SYNOPSIS | |
Uses the VSTS REST API to create pull request | |
.DESCRIPTION | |
This script uses the VSTS REST API to create a Pull Request in the specified | |
repository, source and target branches. Intended to run via VSTS Build using a build step for each repository. | |
https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests/pull-requests | |
.NOTES |
This file contains 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
//cleans cache file (db.json) and generated files (public_dir) | |
gulp.task('site:clean', (cb) => { | |
const command = 'clean'; | |
const args = {}; | |
return hexo.init().then(() => { | |
return hexo.call(command, args); | |
}).then(() => { | |
return cb() | |
}).catch((err) => { |
This file contains 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
using System.ComponentModel.Composition; | |
using Microsoft.VisualStudio.Shell; | |
using Microsoft.VisualStudio.Shell.TableManager; | |
public class ExtensionPackage : Package | |
{ | |
[Import] | |
private ITableManagerProvider _tableManagerProvider; | |
protected override void Initialize() |
NewerOlder