Skip to content

Instantly share code, notes, and snippets.

# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy RemoteSigned
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Disable-UAC # We re-enable at end of script
Set-TaskbarOptions -Size Small
try {
# Configure basic system settings
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
Enable-RemoteDesktop
# Standard packages to install
cinst VisualStudio2013Ultimate -InstallArguments "WebTools"
@jhorsman
jhorsman / Install-A4T-plugin.bat
Last active August 29, 2015 14:27 — forked from mtrl/Install-A4T-plugin.bat
Install-A4T-plugin.bat
"c:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" -file Install-A4T-Plugin.ps1 %1 -CmsHostname "http://[hostname]/" -Username [cme username] -Password [password]
@jhorsman
jhorsman / embed-gist-in-blogger.js
Created June 29, 2016 06:11 — forked from hanxue/embed-gist-in-blogger.js
Embed Gists in Blogger
At the end of your Blogger post , using HTML editor, append this
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>
In the content of your blog post, simply add this:
<div class="gistLoad" data-id="8488564" id="gist-8488564">Loading https://gist.github.com/8488564....</div>
Note: adding the URL is useful because when the javascript does not work, readers can copy and paste the URL themselves.

Commands for the XO Bootcamp.

Handy for copy / pasting

File locations:

  • Elasticsearch: C:\Elasticsearch
  • Installation files: C:\Users\Administrator\Downloads\Tridion Sites 9\Content Delivery\roles\xo\resources\elasticsearch
  • Website root and Query example: C:\Inetpub\wwwroot\QueryBuilder.aspx
@jhorsman
jhorsman / gist:63676578b1376359a4337aa31417fbfe
Last active May 17, 2019 06:47 — forked from jpoehls/gist:2030795
Using CTRL+W to close tabs in Visual Studio

For Visual Studio 2017 (and other versions) with ReSharper

In Tools | Options | Environmen | Keyboard...

  1. Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
  2. Remove the CTRL+W shortcut for Edit.SelectCurrentWord
  3. Remove the CTRL+W shortcut from ReSharper.ReSharper_ExtendSelection (it might be assigned twice)

If CTRL+W does not work after the steps above, it might be assigned to something else. Check these instructions to troubleshoot that: https://gist.github.com/jpoehls/2030795#gistcomment-2335647