service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval(in minutes)service.beta.kubernetes.io/aws-load-balancer-access-log-enabled(true|false)service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-nameservice.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefixservice.beta.kubernetes.io/aws-load-balancer-additional-resource-tags(comma-separated list of key=value)service.beta.kubernetes.io/aws-load-balancer-backend-protocol(http|https|ssl|tcp)service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled(true|false)
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
| ip | tag_name | |
|---|---|---|
| 162.155.56.106 | Apache Log4j RCE Attempt | |
| 223.111.180.119 | Apache Log4j RCE Attempt | |
| 213.142.150.93 | Apache Log4j RCE Attempt | |
| 211.154.194.21 | Apache Log4j RCE Attempt | |
| 210.6.176.90 | Apache Log4j RCE Attempt | |
| 199.244.51.112 | Apache Log4j RCE Attempt | |
| 199.101.171.39 | Apache Log4j RCE Attempt | |
| 197.246.175.186 | Apache Log4j RCE Attempt | |
| 196.196.150.38 | Apache Log4j RCE Attempt |
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
| ARG BUILD_IMAGE=maven:3.5-jdk-11 | |
| ARG RUNTIME_IMAGE=openjdk:11-jdk-slim | |
| ############################################################################################# | |
| ### Stage where Docker is pulling all maven dependencies ### | |
| ############################################################################################# | |
| FROM ${BUILD_IMAGE} as dependencies | |
| ARG PROXY_SET=false | |
| ARG PROXY_HOST= |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-app | |
| spec: | |
| selector: | |
| matchLabels: | |
| run: my-app | |
| replicas: 2 | |
| template: |
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
| // Example showing how to patch kubernetes resources. | |
| // This is the companion to my article 'Patching Kubernetes Resources in Golang': | |
| // https://dwmkerr.com/patching-kubernetes-resources-in-golang/ | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| types "k8s.io/apimachinery/pkg/types" |
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
| # enable Docker for your repository | |
| options: | |
| docker: true | |
| pipelines: | |
| branches: | |
| development: | |
| - step: | |
| # python image with aws-cli installed |
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
| #!/bin/bash | |
| # | |
| # Installation of Hashicorp Nomad for deploy process | |
| # | |
| # Download this file: | |
| # curl -sSL https://gist.githubusercontent.com/ryanpadilha/351a4a4f17afdc8eb0d963897b98122a/raw/ -o nomad-install.sh | |
| # | |
| echo "Initializing script for devops - Nomad Hashicorp" |
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
| // No Security | |
| { | |
| "rules": { | |
| ".read": true, | |
| ".write": true | |
| } | |
| } |
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 airflow import DAG | |
| from airflow.operators import BashOperator | |
| from datetime import datetime | |
| import os | |
| import sys | |
| args = { | |
| 'owner': 'airflow' | |
| , 'start_date': datetime(2017, 1, 27) | |
| , 'provide_context': True |
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
| Enter varnish admin | |
| varnishadm | |
| clear cache for index home page only | |
| ban req.http.host ~ www.htpcguides.com && req.url ~ "^/$" | |
| clear cache for specific page |
NewerOlder