Skip to content

Instantly share code, notes, and snippets.

# Gets latest aws linux ami published by amazon
# Example use with an optional var:
# ${upper(var.ami) == "NONE" ? data.aws_ami.default.id : var.ami}
data "aws_ami" "default" {
most_recent = true
filter {
name = "name"
values = ["amzn-ami-*-x86_64-gp2"]
}
filter {
@mijdavis2
mijdavis2 / remove-v-from-git-tags.sh
Last active May 15, 2018 16:11 — forked from ahmednuaman/remove-v-from-git-tags.sh
Remove the v from git tags
# Fetch
git fetch
# Create tags without v from tags that start with v
for tag in $(git tag)
do
if [[ $tag =~ ^v.*$ ]]
then
git tag "${tag/v/}" $tag
fi
<!DOCTYPE html>
<!--[if lte IE 6]><html class="preIE7 preIE8 preIE9"><![endif]-->
<!--[if IE 7]><html class="preIE8 preIE9"><![endif]-->
<!--[if IE 8]><html class="preIE9"><![endif]-->
<!--[if gte IE 9]><!--><html><!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>title</title>