Skip to content

Instantly share code, notes, and snippets.

@smj10j
smj10j / tcp-port-scan.sh
Created August 24, 2017 11:56 — forked from cinsk/tcp-port-scan.sh
Wait until TCP ports opened (or closed)
#!/bin/bash
function wait4tcp () {
local nc opt silence op host port ret failed limit tries
local OPTIND OPTARG
limit=100
op="open"
while getopts ":csw:" opt; do
@smj10j
smj10j / dynv6.sh
Last active March 21, 2017 11:50 — forked from corny/dynv6.sh
OSX Version of a script to update IPv4 and IPv6 on http://dynv6.com
#!/bin/sh -e
##
## 03/03/2015
## Updates IPv4 and IPv6 on DynV6.com on OSX
## https://gist.github.com/smj10j/6730d6136eb206e9b9bc
## Original at https://gist.github.com/corny/7a07f5ac901844bd20c9
##
## Example call:
## token=<token> ./dynv6.sh <your dynv6 hostname>