Instantly share code, notes, and snippets.

View LIFE.BAS
#!/usr/local/bin/cbmbasic
10 PRINT "eat "
20 PRINT "workout"
30 PRINT "sleep "
40 GOTO 10
View check_up-time.sh
#/bin/bash +x
#
# High dependent on my ssh.config file.
#
LIST="z0h p0h pz0h apih"
LIST="z0 p0 pz0 api"
for I in $LIST
do
#
View ptr6.sh
IPv6=$1
host ${IPv6} | awk '{ip = substr($1,1,31); ptr = substr($1,33); printf("Search for zone:\n%s\n\nAdd Name:\n%s\nWith the requested value\n", ptr, ip);}'
View infinite_ping.sh
#!/bin/bash
set -x
# replace "localhost.example.com" with the domain you may ping.
#
I="localhost.example.com"
while true ; do date; ping -c4 -i10 $I ; echo; done
View mtr_loop.sh
#!/bin/bash
#
function quit ()
{
echo -e "\n*** Exiting by user keystroke ***\n"
exit $?
}
# trap keyboard interrupt (control-c)
View trace_to-from
traceroute code.Lyndell.US; echo; wget -q -O - http://code.lyndell.us/getIP/traceme.php; echo
View pingLoop.bat
::
::
:: Name: PingLoop.bat
:: Desc: Repeatedly run a 100-count ping.
:: URL: https://gist.github.com/lyndell/9b7b9827a8c45ca59a5e2579dbeca5bb
::
:: Author: Lyndell Rottmann
:: WWW: http://Lyndell.US
:: Copyright (c) 2016 Lyndell Rottmann
::
View pathPingLoop.bat
::
::
:: Name: pathPingLoop.bat
:: Desc: Gather network quality information with built-in Windows commands
:: URL: https://gist.github.com/lyndell/48a77ccb954046eb8b9a4659bd07f581
::
:: Author: Lyndell Rottmann
:: WWW: http://Lyndell.US
:: Copyright (c) 2016 Lyndell Rottmann
::
View userAgent.php
<?php
header('Content-Type: text/plain');
$browser = $_SERVER['HTTP_USER_AGENT'];
echo $browser . "\n\n";
$browserArray = split('/', $browser);
print_r($browserArray) . "\n\n";
View GOTO.php
<?php
header('Content-Type: text/plain');
# GOTO
echo "\n\n";
echo "with GOTO:\n";
home: