This file contains 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
# Author: Jeremy Melanson <[email protected]> | |
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
# | |
# This is an iRule for the F5 Big-IP family of load-balancers. It creates | |
# a "greylisting" mechanism for individual URIs, by incrementally delaying | |
# the time it # takes to send the backend's response. | |
# | |
# This can be particularly useful for API calls that might contain a higher | |
# potential for denial-of-service attacks, without restricting non-matching |
This file contains 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
#!/usr/bin/env bash | |
func () { | |
#-- These will make sense shortly. | |
local TMP_NAME="${1}-${2}" | |
local TMP_FILENAME="/tmp/Xout-${TMP_NAME}.tmp" | |
#-- We just assume that if it exists, it's there from a previous run. | |
# Se we just removw it. | |
if [ -e ${TMP_FILENAME} ]; then /bin/rm -f ${TMP_FILENAME}; fi |
This file contains 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/sh | |
# | |
# Originally part of vpnc source code: | |
# © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al. | |
# © 2009-2012 David Woodhouse <[email protected]> | |
# | |
# 2018-05-15 - Minor scutil updates for MacOS Split DNS added by Jeremy Melanson ( https://github.com/zish ). | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains 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
# Bash Terraform completion | |
# | |
# Originally adapted from | |
# https://gist.github.com/cornfeedhobo/8bc08747ec3add1fc5adb2edb7cd68d3 | |
# | |
# Author: Jeremy Melanson | |
# | |
# Features of this version: | |
# - Uses built-in bash routines for text processing, instead of external tools | |
# (awk, sed, grep, ...). |