Here are several different ways to test a TCP port without telnet.
bash (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
Here are several different ways to test a TCP port without telnet.
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
Once I decided weirdly to combine two commands into a single one with possibility to keep the command line options of the both commands. It was assumed the following:
# original and simple usage
command1 options1 | command2 options2
# modified and weird one
super_command options1 -- options2
Print last starting entries found in all available log files
There are two kinds of magic: black and white. Take one spell:
awk
or perl
grep
, sed
, awk
, tac
and sort
Description
FILE_PATTERN
There is collection of scripts which used to create short video of lightnings cut from the full footages.
These scripts are not complete. I store them here as a hints for the future.
# trap_ping 'commands' [ping-options] < file-with-hosts | |
# | |
# Parallelize pinging the network hosts and execute the specified shell | |
# commands if one of the hosts is not reachable. | |
# | |
# Any ping options are allowed; defaults to -n -c 1. | |
# | |
# Environment | |
# | |
# PING_MAXPROCS |
/*! | |
Math.uuid.js (v1.4) | |
http://www.broofa.com | |
mailto:robert@broofa.com | |
Copyright (c) 2010 Robert Kieffer | |
Dual licensed under the MIT and GPL licenses. | |
*/ | |
/* |
function Get-IniContent ($filePath) | |
{ | |
$ini = @{} | |
switch -regex -file $FilePath | |
{ | |
"^\[(.+)\]" # Section | |
{ | |
$section = $matches[1] | |
$ini[$section] = @{} | |
$CommentCount = 0 |
#!/usr/bin/env perl | |
# another solution by this link | |
# https://stackoverflow.com/q/17318289/3627676 | |
use strict; | |
use warnings; | |
sub decamelize { | |
my $s = shift; |