This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Name: rmkey.sh | |
# Desc: Remove an IP's fingerprint from the SSH known_hosts file | |
# URL: https://gist.github.com/lyndell/c2f53d0c3e3c0e37af70 | |
# | |
# Author: Lyndell Rottmann | |
# WWW: http://Lyndell.US | |
# Copyright (c) 2015 Lyndell Rottmann | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# | |
# From: http://stackoverflow.com/questions/394230/detect-the-os-from-a-bash-script | |
PLATFORM=$(uname) | |
case "$PLATFORM" in | |
"Darwin") | |
# macOS | |
;; | |
"Linux") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Python Script to solve the perseverence parachute | |
code | |
Output: | |
DARE¿¿¿¿ | |
MIGHTY¿¿ | |
THINGS¿¿ | |
34°11'58'' N 14°118'10'' W | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: debug | |
spec: | |
selector: | |
matchLabels: | |
name: debug | |
template: | |
metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/cbmbasic | |
10 PRINT "eat " | |
20 PRINT "workout" | |
30 PRINT "sleep " | |
40 GOTO 10 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Name: pingtimer.sh | |
# Desc: Monitor network, gathering ping and HTTP headers | |
# URL: https://gist.github.com/lyndell/21d7ada9774784b03da1 | |
# | |
# Author: Lyndell Rottmann | |
# WWW: http://Lyndell.US | |
# Copyright (c) 2015 Lyndell Rottmann | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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);}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
function quit () | |
{ | |
echo -e "\n*** Exiting by user keystroke ***\n" | |
exit $? | |
} | |
# trap keyboard interrupt (control-c) |
NewerOlder