Skip to content

Instantly share code, notes, and snippets.

View edgarsandi's full-sized avatar
👋
Hi there

Edgar R. Sandi edgarsandi

👋
Hi there
View GitHub Profile
@edgarsandi
edgarsandi / markdown-details-collapsible.md
Last active November 4, 2022 12:59 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux
@edgarsandi
edgarsandi / _install.md
Last active August 30, 2022 19:14
Terraform plan GitLab highlight
@edgarsandi
edgarsandi / readme.md
Last active March 9, 2021 00:45
suggestions to terraform-docs/issue/412
@edgarsandi
edgarsandi / terraform-cost-estimation.rego
Created October 23, 2020 13:28 — forked from antonbabenko/terraform-cost-estimation.rego
Terraform Cost Estimation + Open Policy Agent
# Terraform Cost Estimation + Open Policy Agent
#
# This code snippet supports terraform state for now.
#
# Get the whole response:
# opa eval --data terraform-cost-estimation.rego --input terraform.tfstate --format pretty data.terraform_cost_estimation
#
# Get boolean response. Return false if state (per hour) is too expensive:
# opa eval --data terraform-cost-estimation.rego --input terraform.tfstate --format pretty data.terraform_cost_estimation.response.allowed
@edgarsandi
edgarsandi / terraform_terragrunt_aliases
Created June 6, 2020 04:21 — forked from uolter/terraform_terragrunt_aliases
Useful Terraform and Terrgagrunt aliases
# Terraform
alias trf='terraform'
## Terragrunt
alias trg='terragrunt'
alias trgfmt='terragrunt hclfmt'
alias trglint='find . -type f -not -path "*/\.*" | grep ".hcl" | terragrunt hclfmt'
alias trgcleancache='find . -type d -name ".terragrunt-cache" -prune -exec rm -rf {} \;'
function trginitall() {
@edgarsandi
edgarsandi / README.md
Created June 5, 2020 02:18 — forked from mbaitelman/README.md
Automated Terraform Deployments Using Bitbucket Pipelines
#!/usr/local/bin/python3
from kubernetes import client, config
import sys
config.load_kube_config()
def print_help():
print('I need the namespace(s) as an argument')
if len(sys.argv) <= 1:

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
<?php declare(strict_types=1);
if (
extension_loaded( 'xdebug' )
&& version_compare( '2.6.0', phpversion( 'xdebug' ), '<=' )
)
{
/** @noinspection PhpUndefinedFunctionInspection */
/** @noinspection PhpUndefinedConstantInspection */
xdebug_set_filter(
@edgarsandi
edgarsandi / Dockerfile
Created February 28, 2018 03:58 — forked from SammyK/Dockerfile
Writing tests for php-src: Docker setup
FROM ubuntu:16.04
MAINTAINER Sammy Kaye Powers
RUN apt-get update \
&& apt-get install sudo vim git -y \
&& apt-get install build-essential autoconf valgrind -y \
&& apt-get install re2c bison -y \
&& apt-get install libxml2-dev locales lcov -y