Skip to content

Instantly share code, notes, and snippets.

View jlucktay's full-sized avatar
🎯
Focusing

James Lucktaylor jlucktay

🎯
Focusing
View GitHub Profile
@jlucktay
jlucktay / boxstarter
Last active April 22, 2019 22:26
Boxstarter script for new machine
#
# Function definition, needed for a few installers that don't create their own desktop shortcuts.
# Puts the shortcut on the Public Desktop for everyone to use.
function Create-DesktopShortcut {
[CmdletBinding()] Param(
[Parameter(Mandatory=$True)] [string]$shortcutName,
[Parameter(Mandatory=$True)] [string]$targetPath
)
@jlucktay
jlucktay / boxstarter-windowsupdate
Last active August 29, 2015 14:02
Boxstarter - Windows Update only
Install-WindowsUpdate -AcceptEula
@jlucktay
jlucktay / boxstarter-core
Created February 18, 2015 00:28
Boxstarter - Core setup
Set-CornerNavigationOptions -EnableUsePowerShellOnWinX
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowHiddenFilesFoldersDrives
Enable-PSRemoting -Force
Enable-RemoteDesktop
Update-ExecutionPolicy RemoteSigned
import System;
import System.Windows.Forms;
import Fiddler;
// INTRODUCTION
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
//
// The original version of this file is named SampleRules.js and it is in the
// \Program Files\Fiddler\ folder. When Fiddler first starts, it creates a copy named
0xE6767A13d991081D4f1e7150D8992B8913f31656
@jlucktay
jlucktay / Landscape error (short)
Last active January 22, 2018 11:51
Output from Terraform v0.11.2 which causes errors when fed into Landscape v0.1.17
error: Expected [ ] at line 2, column 2 (byte 3) after
-. Use --trace to view backtrace
@jlucktay
jlucktay / gist:b1e2601579d89a333745f5e8b05c3910
Created May 9, 2018 08:32
VSCode - Pipe function snippet for Go
{
// Place your snippets for go here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted.
//
// Possible variables are:
// - $1, $2 for tab stops
// - $0 for the final cursor position
// - ${1:label}, ${2:another} for placeholders.
//
// Placeholders with the same ids are connected.
@jlucktay
jlucktay / Output from 'terraform apply'
Created May 24, 2018 15:08
Diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Error: Error applying plan:
1 error(s) occurred:
* aws_ebs_volume.gp2: aws_ebs_volume.gp2: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Please include the following information in your report:
Terraform Version: 0.11.7
Resource ID: aws_ebs_volume.gp2
@jlucktay
jlucktay / teleport-ca.pub
Last active June 19, 2018 11:36
Teleport YAML
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCRtzDqEiRDB1/VYR+r1KXdDVQk4VM9MRhWZODpEUfPchLAvAGzvf8TaI9WfQHpAwlmbQDIYs0J7/5UutpVsrjq3ajIuwJXCfXw5ruirckI3oqyP6S8NulCMJOAzaCnBj0PFjyMlFb7ReeVKARtuDLHPY75yh7H6Taqgegv6YYhBH0dSEIZfuil4xBfiGrc9ooQsqMRWeqZM8HYlsJb5fwW1D9g8sFhU4zRm0wIYwfbbVSKJ66cFeupc+ldFXtPjLGcAK7l9i+gVPK3QtvzrZzjpUf48MWghTDYJt7MePAsf3775rK+3o+X/MkDsl9WOSqHoXLwGbTOCuB0Ve5Dxxzl
@jlucktay
jlucktay / gist:e4b30ef896d5b10331a6954d63de2060
Created September 13, 2018 12:12
Stack trace from "az find -q vm extension list"
$ az find -q vm extension list
No module named 'azure.mgmt.botservice'
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.0.45/libexec/lib/python3.7/site-packages/knack/cli.py", line 197, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.0.45/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 369, in execute
six.reraise(*sys.exc_info())
File "/usr/local/Cellar/azure-cli/2.0.45/libexec/lib/python3.7/site-packages/six.py", line 693, in reraise
raise value
File "/usr/local/Cellar/azure-cli/2.0.45/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py", line 343, in execute