This will return the full Git commit SHA of whichever branch is currently checkedout.
Dump the snippet into terraform console
(run from within a Git repo) to see for yourself.
config { | |
module = true | |
disabled_by_default = false | |
varfile = ["dev.tfvars", "prod.tfvars"] | |
} | |
plugin "azurerm" { | |
enabled = true | |
version = "0.14.0" | |
source = "github.com/terraform-linters/tflint-ruleset-azurerm" |
# Source: https://gist.github.com/808108069f709572f1bc372c65f6b5c0 | |
########### | |
# Prepare # | |
########### | |
# Option 1: | |
# Create a Kubernetes cluster | |
# Install NGINX Ingress | |
# Install Argo CD |
This will return the full Git commit SHA of whichever branch is currently checkedout.
Dump the snippet into terraform console
(run from within a Git repo) to see for yourself.
All right folks, I intend to keep this one short and that's what I will do. I mean, it's supposed to be easy but the official documentations(1, 2) make it unnecessary confusing. So I think maybe I can help filling in the gap.
I will be using one of our business requirements at Buffer in this project, as the example for this blog post.
So, we need a few nodes that are dedicated to running cronjobs, and nothing else. At the same time we want to make sure the cornjobs are scheduled to these nodes, and nowhere else. This means we need 2 things
resource "aws_lambda_function" "service" { | |
# Your usual aws_lambda_function configuration settings here | |
tracing_config { | |
mode = "Active" | |
} | |
} |
Recently, I upgraded my MacBook Pro from a old, trusty Yosemite to Sierra, and reluctantly had to clean out the old JDK versions I had accumulated over a few years. I also wanted to have a Java 9 JDK to play around with the new module system and API’s.
Good news is that, for a while now, you have been able to install and upgrade multiple versions of JDK using only your shell, without having to deal with Oracle’s graphical installers.
To install Java from scratch, install Homebrew Cask cask-update
(you need to have Homebrew already installed) first, then install Java using Cask:
brew tap buo/cask-upgrade & brew tap caskroom/versions
brew cask install java8
FROM alpine:3.6 | |
RUN apk add --no-cache --update gcc make automake autoconf libtool musl-dev zlib-dev git openssl nodejs nodejs-npm imagemagick | |
RUN git clone https://github.com/skyrpex/potrace.git && \ | |
cd potrace && \ | |
autoreconf -i && \ | |
./configure && make && make install | |
RUN npm install -g svgo |
type FilterOperator = 'AND' | 'OR'; | |
type FiltersBy<T> = { | |
[K in keyof T]?: (value: T[K]) => boolean; | |
}; | |
/** | |
* Factory function that creates a specialized function to filter | |
* arrays, by validating all filters (AND operator), | |
* or validating just one of the filters (OR operator). | |
* @param operator Method to validate all filters: AND, OR |
postgres: | |
image: postgres:9.4 | |
volumes: | |
- ./init.sql:/docker-entrypoint-initdb.d/init.sql |
Easy to remember, easy to forget.
It's nice to be able to run subl
in a terminal.