Check These Out
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Using nroff , it is possible to view the otherwise garbled man page with col command.
I learned a few things reading this command. But I did run into a few issues:
1. On systems that don't use GNU echo (e.g. macOS 10.14.5 Mojave), the e option may not be supported. In this case ANSI escape codes will echoed as text and the terminal will not flash, like this:
\e[?5h\e[38;5;1m A L E R T Thu Jun 20 16:31:29 PDT 2019
2. Since the read command strips\ignores leading backslashes, if a user types the backslash character once in the loop, it will not break. Typing backslash twice in a loop will break as expected.
3. The foreground color is set to red (\e[38;5;1m) on every loop. This could be set once before we call while, and then reset once when the loop breaks.
4. Instead of resetting the foreground color when it breaks, the video mode is set back to normal (\e[?5l). This has the effect of leaving the terminal text red until it is manually reset.
The alternative I'm proposing here addresses these issues. I tested it on macOS and Arch Linux.
Usefull for when you don't have nmap and need to find a missing host.
Pings all addresses from 10.1.1.1 to 10.1.1.254, modify for your subnet.
Timeout set to 1 sec for speed, if running over a slow connection you should raise that to avoid missing replies.
This will clean up the junk, leaving just the IP address:
for i in {1..254}; do ping -c 1 -W 1 10.1.1.$i | grep 'from' | cut -d' ' -f 4 | tr -d ':'; done
pvl 'link1' 'link2' 'link3'
Play Youtube, Vimeo, etc links without visual elements.
Great for music videos when you just want the audio.
You can control mplayer with this!
Hit Ctrl-C twice to exit (if you're playing multiple files)
no fancy grep stuff here.
mixing tabs and spaces for indentation in python would confuse the python interpreter, to avoid that, check if the file has any tab based indentation.
"^V" => denotes press control + v and press tab within quotes.
$ cat improper_indent.py
class Tux(object):
print "Hello world.."
$ grep " " improper_indent.py
print "Hello world.."
We force IPv4, compress the stream, specify the cypher stream to be Blowfish. I suppose you could use aes256-ctr as well for cypher spec. I'm of course leaving out things like master control sessions and such as that may not be available on your shell although that would speed things up as well.
I like this better than some of the alternatives using -exec, because if I want to change the string, it's right there at the end of the command line. That means less editing effort and more time to drink coffee.