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 / Factorio blueprint book string causing crash - 2020-11-12
Created November 12, 2020 16:36
Factorio blueprint book string causing crash - 2020-11-12
0eJzsvdtyZDeSpf0qbXmtqAkHNvahXuOfuzJZWR7YEm0oZhqV0vxlZXr34SGwg2RsEuvzCMe09eRNd0kC6B4OXwvuDvjGvz98uvnj6tvd9e33f376+vV/ffj7v4//5vcPf//Hs398+G/Xn7/ePv3r369/uf148/Dvvv/r29WHv3+4/n7124efPtx+/O3hn37/fvfx+pdfv+/u/9/Nh79++nB9++Xq///wd/vrJ/fc9NfPP324uv1+/f366kmJzQk/ffj29ff7MV9vHyQ8yPzpw78+/H26/0Nfru+uPj/9l3T4U//65+0fv326unscVtW5/fbH9/u/c/9jb5/G34v791+P/+L73debf366+vXjn9df7x7+7cMP0vTImh4pWo+i6ZGj9Zg0PYZoPRZNjxKth4mOOoYrInrqFK6I6KpzuCKiry7hiojOavtoTZJKq+G8mkR3tXBmTaK/Wji3JtFhLZxdk+qx4fyaVY89n2AfFNgdwpwNVvvbk5/MfysvdRlPdYnn2EdVLDetEk6yWdUknGWLqEkKZ9lJ1SScZRdVk3CWNdVlUzjNmuqzKZxnTXba+EBW9tr4UFZ223CiTbLbhjNtkt02nGqT6rY5PqJV3TbHh7Sq2+Zwts2q2+bz2fbT9S+7q5v7GXfXn3ffvt5cnaqzf9JmfKnN/lSbFuF+sIf/c3f15bGSdJh9ff9PeXyoM/1yd3V1u/Wf/rpU9GdDO/zL53O1YNOHgFczaouv3zbq8KDS838xvW3lrbGC2YVf+gAX7Ze2toP/a+4zVveZXrvPBiTjCyNPuixNTcI3kixqMoTvI0XVJHwbmVRNwneRRdUkPmRXXXaID9lln40P2WWnjQ/ZZa+Nr43IbhsfsstuGx+yq25b4kN21W1LfMiuum2JL0OrblvC2TarblvOZ1stbkq5HTeVeL590qWtSTjdZlWTcLYtqibhZDupmoRz7SJqMoZTrakuO4ZTrak+O8bXolWnHeMDW9Vrx/jAVnbbcKJNstuGM22S3Ta+Fi2
@jlucktay
jlucktay / vendor-viewed.js
Created April 15, 2020 16:02
On a GitHub PR "files changed" page, run this in your browser console to mark all 'vendor/*' files as viewed
document.querySelectorAll("*[data-path*='vendor/']").forEach(el => {
const item = el.querySelectorAll("input[type=checkbox][name=viewed]:not(:checked)")[0]
if (typeof item !== "undefined") {
setTimeout(function () {
item.click()
}, 1000)
}
})

Keybase proof

I hereby claim:

  • I am jlucktay on github.
  • I am jlucktay (https://keybase.io/jlucktay) on keybase.
  • I have a public key ASB1VfyML5n8lzbekiWnas7OlafpUVwaf0EwdYGXMDS3sQo

To claim this, I am signing this object:

@jlucktay
jlucktay / Copy-FactorioBlueprints.ps1
Created June 2, 2019 06:55
Back up your Factorio blueprints to Google Cloud Storage
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest
$KeepOldRemotes = 10
$SleepIntervalSeconds = 180
$TargetBucket = "jlucktay-factorio-eur4"
while ($true) {
$Timestamp = Get-Date -Format FileDateTimeUniversal
@jlucktay
jlucktay / inputs.tf
Created January 8, 2019 14:44
Network rule collection deleted when updating tags on firewall hashicorp/terraform-provider-azurerm#2621
variable "tags" {
description = "A map of tag values for all Azure resources capable of being tagged."
type = "map"
}
@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
@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 / 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 / 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 / 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