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
/** | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { | |
return _.transform(object, function(result, value, key) { | |
if (!_.isEqual(value, base[key])) { |
//credits - https://greasyfork.org/en/scripts/28295-udemy-show-section-time | |
// greasyfonrk was throwing me an error so I created this gist | |
(function() { | |
$.getScript("https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012", function(){ | |
// waits for the cards to be loaded | |
waitForKeyElements(selectors.sectionCard, run, true); | |
}); | |
var selectors = { | |
sectionCard: 'curriculum-navigation-section', |
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
from bs4 import BeautifulSoup | |
attributes = [ | |
"camunda:class", | |
"camunda:topic", | |
"camunda:type" | |
] | |
with open('process.bpmn', 'r') as f: |
#------------------------------------------------------------------------- | |
# FROM: https://kind.sigs.k8s.io/docs/user/local-registry/ | |
set -o errexit | |
# create registry container unless it already exists | |
reg_name='kind-registry' | |
reg_port='5001' | |
if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then | |
docker run \ |
In your effort of implementing standalone-ha with keycloak postgresql using JDBC_PING you will stumble upon many sites that define | |
the table structure for jgroupsping and the right one goes like this - | |
CREATE TABLE IF NOT EXISTS JGROUPSPING ( | |
own_addr varchar(200) NOT NULL, | |
cluster_name varchar(200) NOT NULL, | |
ping_data BYTEA, | |
constraint PK_JGROUPSPING PRIMARY KEY (own_addr, cluster_name) | |
); |
<?xml version='1.0' encoding='UTF-8'?> | |
<server xmlns="urn:jboss:domain:9.0"> | |
<extensions> | |
<extension module="org.jboss.as.clustering.infinispan"/> | |
<extension module="org.jboss.as.connector"/> | |
<extension module="org.jboss.as.deployment-scanner"/> | |
<extension module="org.jboss.as.ee"/> | |
<extension module="org.jboss.as.ejb3"/> | |
<extension module="org.jboss.as.jaxrs"/> |
#!/usr/bin/python | |
print "Converting all of the .dav files in this current directory into .mp4 files using ffmpeg" | |
import os | |
from subprocess import call | |
files = [f for f in os.listdir('.') if os.path.isfile(f)] | |
for f in files: | |
ext = f.split(".")[-1] | |
if ext == "dav" or ext == "DAV": |