Skip to content

Instantly share code, notes, and snippets.

View HebertCL's full-sized avatar
🐕

Hebert_Cuellar HebertCL

🐕
View GitHub Profile
@HebertCL
HebertCL / .vimrc
Created December 16, 2022 17:36
Machine setup
" Enable syntax.
syntax enable
" Set numbers on the left side, relative
" number and number width.
set number
set numberwidth=1
set relativenumber
" Allow mouse interaction inside vim
*** Settings ***
Documentation End-to-end happy path of customer acquisition
... for Android
Library AppiumLibrary run_on_failure=No Operation
*** Variables ***
${REMOTE_URL} http://localhost:4723/wd/hub
${platformName} Android
${deviceName} Android Emulator
${app} /Users/hebertcuellar/Documents/app.apk
@HebertCL
HebertCL / client.yaml
Last active December 24, 2022 10:20
Issue 5344
# This playbook was meant to be executed after provisioning.
# Initially client side certificates where created during
# image cooking, but soon figured out it would not work in
# the long run. When I changed it to post provision execution
# I found errors that mentioned certificates already existed
# and found the issue described in GitHub.
---
- hosts: all
become: yes
@HebertCL
HebertCL / cloud_function.tf
Created October 18, 2019 17:02
This is the configuration I use. You can substitute `var.CONFIG` with your values. I am using git repositories as source for modules. Haven't tested with local modules.
resource "google_cloudfunctions_function" "gcp_function" {
depends_on = [
"null_resource.provision_ready",
]
name = var.gcp_function_name
runtime = var.gcp_function_runtime
available_memory_mb = var.gcp_function_available_memory
source_archive_bucket = var.gcp_function_archive_bucket
source_archive_object = var.gcp_function_archive_object
2019/10/18 11:42:53 [INFO] Terraform version: 0.12.11
2019/10/18 11:42:53 [INFO] Go runtime version: go1.12.9
2019/10/18 11:42:53 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-var-file=default.tfvars"}
2019/10/18 11:42:53 [DEBUG] Attempting to open CLI config file: /Users/hcuellar/.terraformrc
2019/10/18 11:42:53 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/10/18 11:42:53 [INFO] CLI command args: []string{"apply", "-var-file=default.tfvars"}
2019/10/18 11:42:53 [DEBUG] checking for provider in "."
2019/10/18 11:42:53 [DEBUG] checking for provider in "/usr/local/bin"
2019/10/18 11:42:53 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
2019/10/18 11:42:53 [DEBUG] found provider "terraform-provider-google-beta_v2.17.0_x4"
TF_LOG=DEBUG terraform apply
2019/07/24 17:01:49 [INFO] Terraform version: 0.12.5
2019/07/24 17:01:49 [INFO] Go runtime version: go1.12.4
2019/07/24 17:01:49 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/07/24 17:01:49 [DEBUG] Attempting to open CLI config file: /Users/hcuellar/.terraformrc
2019/07/24 17:01:49 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/07/24 17:01:49 [INFO] CLI command args: []string{"apply"}
2019/07/24 17:01:49 [DEBUG] New state was assigned lineage "26eede82-7f83-e4a7-23aa-9424d2e63b90"
2019/07/24 17:01:49 [DEBUG] checking for provider in "."
2019/07/24 17:01:49 [DEBUG] checking for provider in "/usr/local/bin"
@HebertCL
HebertCL / sql.tf
Created July 24, 2019 21:59
Terraform config file provisioning SQL instance, Database and user
terraform {
required_version = ">=0.12.0"
}
provider "google" {
credentials = "${file("${var.gcp_credentials}")}"
project = var.gcp_project
region = var.gcp_region
}

Keybase proof

I hereby claim:

  • I am hebertcl on github.
  • I am hebertcl (https://keybase.io/hebertcl) on keybase.
  • I have a public key ASApTU8Z5GMVGc6ncBA-swzGVEDakXHqmwtXlj0rn5zg8go

To claim this, I am signing this object: