Skip to content

Instantly share code, notes, and snippets.

I0109 04:53:18.183093 1 log_handler.go:29] AWS request: ec2 DescribeInstances
I0109 04:53:18.446339 1 round_trippers.go:443] GET https://172.30.0.120:6443/api/v1/namespaces/kube-system/endpoints/cloud-controller-manager 200 OK in 2 milliseconds
I0109 04:53:18.448765 1 round_trippers.go:443] GET https://172.30.0.120:6443/apis/coordination.k8s.io/v1/namespaces/kube-system/leases/cloud-controller-manager 200 OK in 2 milliseconds
I0109 04:53:18.453679 1 round_trippers.go:443] PUT https://172.30.0.120:6443/api/v1/namespaces/kube-system/endpoints/cloud-controller-manager 200 OK in 4 milliseconds
I0109 04:53:18.458118 1 round_trippers.go:443] GET https://172.30.0.120:6443/apis/coordination.k8s.io/v1/namespaces/kube-system/leases/cloud-controller-manager 200 OK in 4 milliseconds
I0109 04:53:18.458911 1 log_handler.go:34] AWS API Send: ec2 DescribeInstances &{DescribeInstances POST / 0xc0008d9310 <nil>} {
Filters: [{
Name: "private-dns-name",
Values: ["ip-172-30-0-123.
@mattlqx
mattlqx / keybase.md
Created October 15, 2019 17:26
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@mattlqx
mattlqx / gist:1062f8ffab7ada6a10f21392ced96f55
Created June 26, 2019 16:36
vsphere_virtual_machine nested
{
"module": "module.admin_vsphere_linux",
"mode": "managed",
"type": "vsphere_virtual_machine",
"name": "instance",
"each": "list",
"provider": "provider.vsphere.config",
"instances": [
{
"index_key": 0,
@mattlqx
mattlqx / gist:566ec0022f31fdd9571378145a404191
Created June 26, 2019 16:31
vsphere_virtual_machine flat
{
"module": "module.admin_vsphere_linux",
"mode": "managed",
"type": "vsphere_virtual_machine",
"name": "instance",
"provider": "provider.vsphere.config",
"instances": [
{
"schema_version": 3,
"attributes_flat": {
@mattlqx
mattlqx / gist:0958888a2845757f5d41faaed3d3f556
Created December 14, 2018 17:36
coredns gdb route53 USR1 loops
^C
Thread 1 "coredns" received signal SIGINT, Interrupt.
[Switching to LWP 1]
runtime.futex () at /usr/local/go/src/runtime/sys_linux_amd64.s:532
532 /usr/local/go/src/runtime/sys_linux_amd64.s: No such file or directory.
(gdb) commands 1
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>p zName
>continue
@mattlqx
mattlqx / linux-baseline.rb
Last active May 31, 2018 16:22
InSpec linux-baseline controls wrapper with better find to not walk network mounts
include_controls 'linux-baseline' do
# Dynamic monkeypatch of the suid_check resource
# must be done this way because resource classes are entirely dynamic
suid_check = resource_class('linux-baseline', 'suid_check')
suid_check.send(:define_method, :network_paths) do
inspec.file('/etc/mtab').content.split("\n").select { |l| %w[nfs nfs4 cifs ceph].include?(l.split[2]) }.map { |m| m.split[1] }
end
suid_check.send(:define_method, :exclude_paths) do
[2015-12-04 19:06:30] INFO [update-installer (31584)]: Starting: Installing new lockrun
[2015-12-04 19:06:30] INFO [update-installer (31584)]: About to execute `"gcc /opt/aws/opsworks/releases/20151125145248_3430-20151125145248/vendor/lockrun/lockrun.c -o /opt/aws/opsworks/releases/20151125145248_3430-20151125145248/bin/lockrun"` from /tmp with 0 retries
[2015-12-04 19:06:30] INFO [update-installer (31584)]: Finished: Installing new lockrun (0 sec)
[2015-12-04 19:06:30] INFO [update-installer (31584)]: Starting: Symlinking new instance agent
[2015-12-04 19:06:30] INFO [update-installer (31584)]: Linking new release
[2015-12-04 19:06:30] INFO [update-installer (31584)]: Unlinking last release
[2015-12-04 19:06:30] INFO [update-installer (31584)]: About to execute `"systemctl daemon-reload"` from /tmp with 0 retries
[2015-12-04 19:06:30] DEBUG [update-installer (31584)]: Failed to get D-Bus connection: No connection to service manager.
[2015-12-04 19:06:30] ERROR [update-installer (31584)]: Update unsuc
@mattlqx
mattlqx / gist:6293024a4989dcd9c322
Last active December 4, 2015 18:59
Opsworks agent update 3430 on 14.04
[2015-12-04 18:45:01] INFO [agent-updater (5645)]: Updating the instance agent to version 3430-20151125145248
[2015-12-04 18:45:01] INFO [agent-updater (5645)]: Starting: Downloading new agent version 3430-20151125145248
[2015-12-04 18:45:01] INFO [agent-updater (5645)]: [ Fri, 04 Dec 2015 18:45:01 +0000 ] downloader: Successfully created temporary download directory. (/tmp/opsworks-downloader.PhXKCRxL)
[ Fri, 04 Dec 2015 18:45:01 +0000 ] downloader: File size test passed.
[ Fri, 04 Dec 2015 18:45:01 +0000 ] downloader: Checksum proof passed.
[ Fri, 04 Dec 2015 18:45:01 +0000 ] downloader: Successfully downloaded https://opsworks-instance-agent-us-east-1.s3.amazonaws.com/3430-20151125145248/opsworks-agent-installer.tgz
[2015-12-04 18:45:01] INFO [agent-updater (5645)]: Finished: Downloading new agent version 3430-20151125145248 (0 sec)
[2015-12-04 18:45:01] INFO [agent-updater (5645)]: Starting: Updating the agent
[2015-12-04 18:45:01] INFO [agent-updater (5645)]: Extracting new agent