Skip to content

Instantly share code, notes, and snippets.

@marcosdiez
marcosdiez / terraform_trace.log
Last active January 5, 2018 11:44
Terraform Trace Log
2018/01/05 09:42:19 [INFO] Terraform version: 0.11.1 a42fdb08a43c7fabb8898fe8c286b793bbaa4835+CHANGES
2018/01/05 09:42:19 [INFO] Go runtime version: go1.9
2018/01/05 09:42:19 [INFO] CLI args: []string{"/mnt/extra/u/rootfs/home/ubuntu/bin/t11", "validate"}
2018/01/05 09:42:19 [DEBUG] Attempting to open CLI config file: /home/mdiez/.terraformrc
2018/01/05 09:42:19 Loading CLI configuration from /home/mdiez/.terraformrc
2018/01/05 09:42:19 [INFO] CLI command args: []string{"validate"}
2018/01/05 09:42:19 [DEBUG] checking for provider in "."
2018/01/05 09:42:19 [DEBUG] checking for provider in "/mnt/extra/u/rootfs/home/ubuntu/bin"
2018/01/05 09:42:19 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2018/01/05 09:42:19 [DEBUG] found provider "terraform-provider-aws_v1.6.0_x4"
@marcosdiez
marcosdiez / crash.log
Created January 5, 2018 11:45
crash.log 2018-01-05
2018/01/05 09:42:19 [INFO] Terraform version: 0.11.1 a42fdb08a43c7fabb8898fe8c286b793bbaa4835+CHANGES
2018/01/05 09:42:19 [INFO] Go runtime version: go1.9
2018/01/05 09:42:19 [INFO] CLI args: []string{"/mnt/extra/u/rootfs/home/ubuntu/bin/t11", "validate"}
2018/01/05 09:42:19 [DEBUG] Attempting to open CLI config file: /home/mdiez/.terraformrc
2018/01/05 09:42:19 Loading CLI configuration from /home/mdiez/.terraformrc
2018/01/05 09:42:19 [INFO] CLI command args: []string{"validate"}
2018/01/05 09:42:19 [DEBUG] checking for provider in "."
2018/01/05 09:42:19 [DEBUG] checking for provider in "/mnt/extra/u/rootfs/home/ubuntu/bin"
2018/01/05 09:42:19 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2018/01/05 09:42:19 [DEBUG] found provider "terraform-provider-aws_v1.6.0_x4"
DOMAIN="www.mydomain.com"
if [[ ! -f "${DOMAIN}.key" ]]
then
echo "x"
openssl req -new -newkey rsa:4096 -nodes -keyout ${DOMAIN}.key -out ${DOMAIN}.csr
fi
echo Y
cp ${DOMAIN}.crt ${DOMAIN}_combined.crt
echo "" >> ${DOMAIN}_combined.crt
@marcosdiez
marcosdiez / gist:d6943375c6d8b1dc607529e42d01f44e
Created January 30, 2019 13:28
alb-ingress-controller.yaml
# Application Load Balancer (ALB) Ingress Controller Deployment Manifest.
# This manifest details sensible defaults for deploying an ALB Ingress Controller.
# GitHub: https://github.com/kubernetes-sigs/aws-alb-ingress-controller
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alb-ingress-controller
name: alb-ingress-controller
# Namespace the ALB Ingress Controller should run in. Does not impact which
#!/usr/bin/env python
from __future__ import print_statement
"""\
Simple g-code streaming script for grbl
Provided as an illustration of the basic communication interface
for grbl. When grbl has finished parsing the g-code block, it will
return an 'ok' or 'error' response. When the planner buffer is full,
grbl will not send a response until the planner buffer clears space.
@marcosdiez
marcosdiez / TestStartStop.txt
Created March 21, 2019 12:43
env TEST_ARGS="-minikube-start-args=--vm-driver=none -test.run TestStartStop" sudo -E make integration
go test -v -test.timeout=30m k8s.io/minikube/test/integration --tags="integration container_image_ostree_stub containers_image_openpgp" -minikube-start-args=--vm-driver=none -test.run TestStartStop
=== RUN TestStartStop
=== RUN TestStartStop/docker+cache
09:34:27 | Run: [/mnt/extra/u/rootfs/home/ubuntu/code/go11/src/k8s.io/minikube/out/minikube config set WantReportErrorPrompt false]
09:34:27 | Run: [/mnt/extra/u/rootfs/home/ubuntu/code/go11/src/k8s.io/minikube/out/minikube delete]
09:34:27 | > ? "minikube" cluster does not exist
09:34:27 | > - The "minikube" cluster has been deleted.
09:34:27 | Run: [/mnt/extra/u/rootfs/home/ubuntu/code/go11/src/k8s.io/minikube/out/minikube status --format={{.Host}} ]
09:34:27 | Run: [/mnt/extra/u/rootfs/home/ubuntu/code/go11/src/k8s.io/minikube/out/minikube start --vm-driver=none --container-runtime=docker --cache-images --alsologtostderr --v=2]
09:34:27 | > o minikube v0.35.0 on linux (amd64)
#!/usr/bin/env python3
import sys
import os
def show_paths():
uid = os.getuid()
folder = "/proc"
blacklist = [ "/proc/net" , "/proc/self", "/proc/thread-self" ]
output = []
@marcosdiez
marcosdiez / gist:fa6b88af92aaba21e3876b2b4490ad99
Created February 11, 2021 13:12
terraform import aws_lambda_function crash log
2021/02/11 10:04:27 [INFO] Terraform version: 0.14.6
2021/02/11 10:04:27 [INFO] Go runtime version: go1.15.6
2021/02/11 10:04:27 [INFO] CLI args: []string{"/mnt/extra/u/rootfs/home/ubuntu/bin/terraform14", "import", "aws_lambda_function.userapi", "arn:aws:lambda:us-east-1:123456789012:function:my-lambda-function"}
2021/02/11 10:04:27 [DEBUG] Attempting to open CLI config file: /home/mdiez/.terraformrc
2021/02/11 10:04:27 Loading CLI configuration from /home/mdiez/.terraformrc
2021/02/11 10:04:27 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/02/11 10:04:27 [DEBUG] ignoring non-existing provider search directory /home/mdiez/.terraform.d/plugins
2021/02/11 10:04:27 [DEBUG] ignoring non-existing provider search directory /home/mdiez/.local/share/terraform/plugins
2021/02/11 10:04:27 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2021/02/11 10:04:27 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
@marcosdiez
marcosdiez / gist:7f37b3e53a5252c2c33569e01e5b79d2
Created May 12, 2022 22:12
valgrind ./build/bin/fluent-bit -c build/bin/test.conf
mdiez@batman:/mnt/extra/u/rootfs/home/ubuntu/code/fluent-bit$ valgrind ./build/bin/fluent-bit -c build/bin/test.conf
==250022== Memcheck, a memory error detector
==250022== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==250022== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==250022== Command: ./build/bin/fluent-bit -c build/bin/test.conf
==250022==
Fluent Bit v1.9.4
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
Fluent Bit v1.9.4
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
[2022/05/12 19:14:08] [ info] Configuration:
[2022/05/12 19:14:08] [ info] flush time | 1.000000 seconds
[2022/05/12 19:14:08] [ info] grace | 5 seconds
[2022/05/12 19:14:08] [ info] daemon | 0
[2022/05/12 19:14:08] [ info] ___________