Skip to content

Instantly share code, notes, and snippets.

@liamjbennett
liamjbennett / starter-pack.md
Last active November 8, 2021 08:50
The starter pack
@liamjbennett
liamjbennett / feeds.opml
Last active November 8, 2021 08:35
RSS Feeds OPML
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Liam subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="reddit" title="reddit">
<outline type="rss" text="Managed Service Providers" title="Managed Service Providers" xmlUrl="https://www.reddit.com/r/msp/.rss" htmlUrl="https://www.reddit.com/r/msp/"/>
</outline>
@liamjbennett
liamjbennett / boxstarter.txt
Last active December 10, 2018 07:41
Boxstarter
#PS C:\Windows\system32>
#. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#Install-BoxstarterPackage -PackageName <raw gist>
# Basic setup
Update-ExecutionPolicy Unrestricted
Disable-InternetExplorerESC
Disable-GameBarTips
Disable-UAC
Disable-BingSearch
panic: interface conversion: interface is []*terraform.InstanceState, not reflect.StructField
goroutine 1618 [running]:
panic(0x291fec0, 0xc4204edcc0)
/opt/go/src/runtime/panic.go:500 +0x1a1
github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure.(*walker).Exit(0xc420798120, 0x7, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure/copystructure.go:196 +0x747
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walkStruct(0x2c7ebe0, 0xc4204a4ea0, 0x199, 0x2d8c700, 0xc420798120, 0x101, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk/reflectwalk.go:330 +0x40c
github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk.walk(0x2c77240, 0xc4204a4ea0, 0x16, 0x2d8c700, 0xc420798120, 0x0, 0x0)
@liamjbennett
liamjbennett / enable_wirm.ps1
Created September 2, 2016 08:31
Enable WinRM
winrm quickconfig -q
winrm quickconfig -transport:http
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="2048"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/service @{MaxConcurrentOperationsPerUser="5000"}
winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"}
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
2016/08/23 09:40:57 [INFO] Packer version: 0.10.1
2016/08/23 09:40:57 Packer Target OS/Arch: linux amd64
2016/08/23 09:40:57 Built with Go Version: go1.6.2
2016/08/23 09:40:57 Detected home directory from env var: /home/liam
2016/08/23 09:40:57 Using internal plugin for amazon-chroot
2016/08/23 09:40:57 Using internal plugin for qemu
2016/08/23 09:40:57 Using internal plugin for virtualbox-ovf
2016/08/23 09:40:57 Using internal plugin for vmware-iso
2016/08/23 09:40:57 Using internal plugin for azure-arm
2016/08/23 09:40:57 Using internal plugin for docker
➜ terraform git:(aws_workspace) ✗ make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSWorkspace_basic'
==> Checking that code complies with gofmt requirements...
/home/liam/development/go/bin/stringer
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/08/11 12:46:02 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSWorkspace_basic -timeout 120m
=== RUN TestAccAWSWorkspace_basic
panic: interface conversion: interface {} is nil, not *aws.AWSClient
goroutine 130 [running]:
@liamjbennett
liamjbennett / Gemfile
Created June 1, 2016 15:55
OT puppet Gemfile
source 'http://rubygems.org'
# note a recent ruby gems is required to properly run librarian puppet
# not sure if that dependency can be specified within a Gemfile
group :development do
gem 'puppet', '= 3.8.1' # pinned this to 3.8.1 because > 3.8.1 seems to break rspec-puppet
gem 'puppet-lint', git: 'https://github.com/rodjek/puppet-lint.git'
@liamjbennett
liamjbennett / puppet-centos-hacks.sh
Created May 24, 2016 15:41
puppet - centos/rhel - ruby2.0
#!/usr/bin/env bash
sed -i '/\/usr\/bin\/ruby/c\#!/usr/bin/env ruby' /usr/bin/puppet
# https://blog.al4.co.nz/2013/11/fixing-puppet-3-2-symlinks-on-osx-mavericks/
ln -s /usr/lib/ruby/site_ruby/1.8/puppet /usr/local/lib/ruby/site_ruby/2.0.0/puppet
ln -s /usr/lib/ruby/site_ruby/1.8/puppet.rb /usr/local/lib/ruby/site_ruby/2.0.0/puppet.rb
ln -s /usr/lib/ruby/site_ruby/1.8/semver.rb /usr/local/lib/ruby/site_ruby/2.0.0/semver.rb
ln -s /usr/lib/ruby/site_ruby/1.8/facter /usr/local/lib/ruby/site_ruby/2.0.0/facter
ln -s /usr/lib/ruby/site_ruby/1.8/facter.rb /usr/local/lib/ruby/site_ruby/2.0.0/facter.rb
ln -s /usr/lib/ruby/site_ruby/1.8/hiera /usr/local/lib/ruby/site_ruby/2.0.0/hiera
@liamjbennett
liamjbennett / ruby2.0-rhel.sh
Last active May 24, 2016 15:29
ruby2.0 centos/rhel
#!/usr/bin/env bash
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum -y update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick
version=2.0.0-p247