You will need
- A Macintosh computer
- A USB-to-serial adapter
- A file with a config you want to paste sloooowly
- A few minutes
function section() { | |
sed -n "/${*}/,/^$/p" | |
} |
#!/usr/bin/env bash | |
function aboutMe() { | |
printf "\n\t%s, ver %s" "${scriptName}" "${scriptVersion}" | |
printf "\nPing a given host with a certain frequency - 5 seconds default - and save in a time stamped file" | |
printf "\nUsage:\n\n\t%s%s ADDRESS %s" "${scriptFile}" "${Emphasize}" "${ColorOff}" | |
printf "\n\n\tExample:" | |
printf "\n\t\t%s%s www.example.org 10%s" "${scriptFile}" "${Emphasize}" "${ColorOff}" | |
printf "\n\n\tSet timer to 10 seconds:" | |
printf "\n\t\t%s%s -t 10 %s www.example.org\n\n" "${scriptFile}" "${Emphasize}" "${ColorOff}" |
#!/usr/bin/env bash | |
function aboutMe() { | |
printf "\n\t%s, ver %s" "${scriptName}" "${scriptVersion}" | |
printf "\n\tTries to acces the supplied IP or FQDN via several methods." | |
printf "\n\tDoesn't care about IPv6." | |
printf "\n\n\tExample:" | |
printf "\n\t\t%s %s example.com%s" "${scriptFile}" "${Emphasize}" "${ColorOff}" | |
printf "\n\t\t%s %s example.com example.org%s" "${scriptFile}" "${Emphasize}" "${ColorOff}" | |
printf "\n\n\tAlso has a built-in retry timer, using -r! (Note: only way to get out is killing the terminal)" |
javascript: (function(n, t) { | |
t['true'] = n; | |
var i = function(n, t, i) { | |
var r = n.style; | |
r.webkitTransition = r.transition = i + 's'; | |
r.webkitTransitionTimingFunction = r.TransitionTimingFunction = 'ease-in-out'; | |
r.webkitTransform = r.Transform = 'translate3d(0, ' + -t + 'px, 0)' | |
}; | |
var r = function() { | |
var n = [].slice.call(arguments); |
#!/usr/bin/env python3 | |
# imports | |
import netifaces | |
import os | |
import subprocess | |
def main(): | |
eth = 'en9' |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
scriptFile=$(basename "${0}") | |
scriptName="Uptime-and-downtime-logger" | |
scriptVersion="2016-08-26 JAGR" | |
defaultPingTimer=4 | |
targetIP=${1} | |
if [ -z "${2}" ]; then | |
pingTimer=${defaultPingTimer} |
#!/usr/bin/env bash | |
function aboutMe() { | |
echo -e "\n\t${scriptName}, v ${scriptVersion}" | |
echo -e "\n\tLooks through the ${lookupDomain} domain for what you want" | |
echo -e "\n\tTreats spaces as '.*'" | |
echo -e "\n\tExamples:" | |
echo -e "\n\t${scriptFile}${Emphasize} rt vrdb${ColorOff} will match rt01.vrdb" | |
echo -e "\t${scriptFile}${Emphasize} wireshark${ColorOff}\n" | |
# echo -e "(behind the scenes, it's a fancy ${Emphasize} dig -t AXFR tekdom.local | grep${ColorOff})\n" |
#!/usr/bin/env bash | |
function aboutMe { | |
echo -e "\n\t$scriptName, v $scriptVersion" | |
echo -e "\n\tExamples:" | |
echo -e "\n\t$scriptFile \033[1;31mcurl\033[1;0m" | |
echo -e "\t$scriptFile \033[1;31msnmpdelta\033[1;0m\n" | |
echo -e "\n\tGenerates a rich text man page for you and opens it in Preview" | |
} | |
scriptFile=$(basename "$0") |