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
--- | |
# This task list is intended to be imported by playbooks, before any | |
# other tasks are performed. It lets us determine whether the configured SSH | |
# port is available, and lets us fall back to the default port if necessary. | |
# | |
# The use case here is when a role in the playbook is configured to change the | |
# sshd port, but the first time the role is executed the host is still | |
# listening on the default port. With this check in place, we can fall back | |
# to the default port on the first run, and then on subsequent runs use the | |
# configured port. |
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
# A stack, using bash arrays. | |
# --------------------------------------------------------------------------- | |
# Create a new stack. | |
# | |
# Usage: stack_new name | |
# | |
# Example: stack_new x | |
function stack_new | |
{ |
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 | |
# inspired by 1fbsdguru's stuff at: | |
# http://www.cyberciti.biz/faq/howto-setup-freebsd-ipfw-firewall/ | |
# do not forget to set right ip! | |
ip="my.ip.address" | |
IPF="ipfw -q add" | |
# Loopback |