Skip to content

Instantly share code, notes, and snippets.

@lyndell
lyndell / parachute.py
Created March 4, 2021 02:50 — forked from adithyabsk/parachute.py
NASA Perseverance Parachute Code
"""Python Script to solve the perseverence parachute
code
Output:
DARE¿¿¿¿
MIGHTY¿¿
THINGS¿¿
34°11'58'' N 14°118'10'' W
"""
@lyndell
lyndell / Debug_DaemonSet.yaml
Created November 11, 2020 20:33
deploy plain Ubuntu image for debugging on all nodes in a Kubernetes cluster
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug
spec:
selector:
matchLabels:
name: debug
template:
metadata:
@lyndell
lyndell / LIFE.BAS
Last active March 20, 2018 21:52
write life code in tweet
#!/usr/local/bin/cbmbasic
10 PRINT "eat "
20 PRINT "workout"
30 PRINT "sleep "
40 GOTO 10
@lyndell
lyndell / check_up-time.sh
Last active February 12, 2018 02:15
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 March 6, 2017 04:28
Breakdown IPv6 reverse DNS strings
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 February 10, 2017 00:52
Infinite ping with time stamps
#!/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 August 2, 2016 02:47
repeatedly run MTR
#!/bin/bash
#
function quit ()
{
echo -e "\n*** Exiting by user keystroke ***\n"
exit $?
}
# trap keyboard interrupt (control-c)
@lyndell
lyndell / trace_to-from
Created June 2, 2016 00:13
Traceroute to and from a server
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 02:13
Repeatedly run a 100-count ping.
::
::
:: 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 00:44
Gather network quality information with built-in Windows commands
::
::
:: 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
::