wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zipor
curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip| #!/bin/sh | |
| node=${1} | |
| kube_context=${2:-""} | |
| nodeName=$(kubectl ${kube_context:+--context $kube_context} get node "$node" -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}') | |
| nodeSelector='"nodeSelector": { "kubernetes.io/hostname": "'${nodeName:?}'" },' | |
| podName=$USER-nsenter-$node | |
| kubectl ${kube_context:+--context $kube_context} run "${podName:?}" --restart=Never -it --rm --image overriden --overrides ' | |
| { |
| @ECHO OFF | |
| :: Значения по умолчанию ::::::::::::::::::::::::::: | |
| SET TCP_WINDOW=64k | |
| SET TARGET_IP=127.0.0.1 | |
| SET TARGET_PROTO=tcp | |
| :::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| :: https://ritchielawrence.github.io/mtee/ |
| #!/bin/sh | |
| # | |
| # Required OpenSSL 1.1.1, providing subjectAltName directly on command line: | |
| # https://security.stackexchange.com/questions/74345/provide-subjectaltname-to-openssl-directly-on-the-command-line | |
| # | |
| openssl req -x509 \ | |
| -nodes \ | |
| -subj "/CN=$1" \ |
| import sqlite3 | |
| import yaml | |
| def dict_factory(cursor, row): | |
| d = {} | |
| for idx, col in enumerate(cursor.description): | |
| d[col[0]] = row[idx] | |
| return d |
yum install -y openssl-devel gcc apr-devel
# /opt/atlassian/jira/jre/bin/java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
| curl -sL https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | (python2 || python3 || python2) |
| #!/bin/sh | |
| cowsay $@ | lolcat -f |
for e in $(seq 0 1000); do sh -c "exit $e"; echo $e:$?; done