- !gamble
- !slot
- !roll
- !adventure
- !roulette
- !kill
This file contains hidden or 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
| proxy_cache_path /tmp/nginx levels=1:2 keys_zone=default:10m max_size=50m; | |
| upstream backends { | |
| server service.consul service=backend resolve; | |
| } | |
| server { | |
| status_zone default; | |
| listen 80; |
This file contains hidden or 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 | |
| ENV CC="clang" | |
| ENV CXX="clang++" | |
| ENV CFLAGS="-fsanitize=address -fno-omit-frame-pointer" | |
| ENV CPPFLAGS="-fsanitize=address -fno-omit-frame-pointer" | |
| ENV LDFLAGS="-fsanitize=address" | |
| ENV ASAN_OPTIONS="detect_leaks=0" | |
| RUN sed -i 's/# deb-src/deb-src/g' /etc/apt/sources.list |
This file contains hidden or 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
| variable "name" { | |
| description = "Zone name, e.g stack.local" | |
| } | |
| variable "vpc_id" { | |
| description = "The VPC ID (omit to create a public zone)" | |
| default = "" | |
| } | |
| variable "zone_id" { |
This file contains hidden or 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
| variable "is_defined" { | |
| type = "map" | |
| default = { | |
| "0" = "1" | |
| } | |
| } | |
| resource "aws_route53_zone" "main" { | |
| count = "${lookup(var.is_defined,length(var.zone_id),0)}" | |
| name = "${var.name}" | |
| vpc_id = "${var.vpc_id}" |
This file contains hidden or 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
| resource "aws_route53_zone" "main" { | |
| count = "${length(var.zone_id)}" | |
| name = "${var.name}" | |
| vpc_id = "${var.vpc_id}" | |
| comment = "" | |
| } |
This file contains hidden or 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
| geo $office_networks { | |
| 192.168.0.0/24 1; | |
| } | |
| server { | |
| listen 80; | |
| location / { | |
| proxy_cache_bypass $office_networks; | |
| proxy_cache_valid any 5m; | |
| proxy_cache mycache; |
This file contains hidden or 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
| cleanup_older = 30 | |
| print("Moving messages older than ".. cleanup_older .. " on INBOX to Cleanup.") | |
| messages = account1["INBOX"]:is_older(cleanup_older) | |
| messages:move_messages(account1["Cleanup"]) |
This file contains hidden or 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
| print("Emptying trash folder.") | |
| messages = account1["[Gmail]/Trash"]:select_all() | |
| messages:delete_messages() |
This file contains hidden or 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
| folders = { | |
| "Monitoring/Crons", | |
| "Monitoring/Nagios" | |
| } | |
| for folder = 1, #folders do | |
| print("Emptying folder " .. folders[folder]) | |
| messages = account1[folders[folder]]:select_all() | |
| messages:move_messages(account1["[Gmail]/Trash"]) | |
| end |