<details>
<summary>Click me</summary>
### Heading
1. Foo
2. Bar
* Baz
* Qux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() { |
- AWS Account
- AWS API User API Key/Secret
- Bitbucket Account
- Create or update an existing Bitbucket repo
- Open https://bitbucket.org/USERNAME/REPO/addon/pipelines/deployments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
if ( | |
extension_loaded( 'xdebug' ) | |
&& version_compare( '2.6.0', phpversion( 'xdebug' ), '<=' ) | |
) | |
{ | |
/** @noinspection PhpUndefinedFunctionInspection */ | |
/** @noinspection PhpUndefinedConstantInspection */ | |
xdebug_set_filter( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# | |
# You can run this script directly from github as root like this: | |
# curl -sS https://gist.githubusercontent.com/fabiorphp/a94e0ea2558b3d10185d6d69d053c2b2/raw/configure_docker0.sh | sudo bash -s - 172.31.0.21/16 | |
# | |
# * Make sure you replace "192.168.254.0/24" with the network that you want to use | |
# | |
# NOTE: This script is intended for Debian / Ubuntu only! | |
if [ $# -lt 1 ]; then |
NewerOlder