Skip to content

Instantly share code, notes, and snippets.

View tommywo's full-sized avatar

Tomasz Wojtuń tommywo

View GitHub Profile
@tommywo
tommywo / terragrunt.hcl
Created June 19, 2020 19:00
tfsec-terragrunt-hcl
terraform {
before_hook "before_hook" {
commands = ["apply", "plan"]
execute = ["tfsec", "."]
}
}
@tommywo
tommywo / example.tf
Last active June 19, 2020 18:59
tfsec-terragrunt-example
resource "aws_security_group_rule" "example" {
type = "ingress"
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "sg-123456"
}
@tommywo
tommywo / nginxproxy.md
Created October 17, 2017 07:47 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@tommywo
tommywo / gist:210642ca2694a339f9eb
Created November 13, 2015 07:58 — forked from andrzejsliwa/gist:778535
list all available cucumber steps - (rake cucumber:steps)
# based on http://www.natontesting.com/2010/01/11/updated-script-to-list-all-cucumber-step-definitions/
#
desc 'List all defined steps'
task :steps do
require 'hirb'
extend Hirb::Console
puts "CUCUMBER steps:"
puts ""
step_definition_dir = "features/step_definitions"