Skip to content

Instantly share code, notes, and snippets.

Lyndell Rottmann lyndell

Block or report user

Report or block lyndell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lyndell
lyndell / LIFE.BAS
Last active Mar 20, 2018
write life code in tweet
View LIFE.BAS
#!/usr/local/bin/cbmbasic
10 PRINT "eat "
20 PRINT "workout"
30 PRINT "sleep "
40 GOTO 10
@lyndell
lyndell / check_up-time.sh
Last active Feb 12, 2018
check_up-time.sh
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
#
@lyndell
lyndell / ptr6.sh
Created Mar 6, 2017
Breakdown IPv6 reverse DNS strings
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);}'
@lyndell
lyndell / infinite_ping.sh
Last active Feb 10, 2017
Infinite ping with time stamps
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
@lyndell
lyndell / mtr_loop.sh
Last active Aug 2, 2016
repeatedly run MTR
View mtr_loop.sh
#!/bin/bash
#
function quit ()
{
echo -e "\n*** Exiting by user keystroke ***\n"
exit $?
}
# trap keyboard interrupt (control-c)
@lyndell
lyndell / trace_to-from
Created Jun 2, 2016
Traceroute to and from a server
View trace_to-from
traceroute code.Lyndell.US; echo; wget -q -O - http://code.lyndell.us/getIP/traceme.php; echo
@lyndell
lyndell / pingLoop.bat
Last active May 19, 2016
Repeatedly run a 100-count ping.
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
::
@lyndell
lyndell / pathPingLoop.bat
Last active May 19, 2016
Gather network quality information with built-in Windows commands
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
::
@lyndell
lyndell / userAgent.php
Last active Apr 19, 2016
print the useragent string and split it by slashes
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";
@lyndell
lyndell / GOTO.php
Last active Dec 30, 2015
Home sweet home infinite loop
View GOTO.php
<?php
header('Content-Type: text/plain');
# GOTO
echo "\n\n";
echo "with GOTO:\n";
home:
You can’t perform that action at this time.