Installing https://helm.sh/ for https://gitlab.org/ integration with a LOCAL http://kubernetes.io/ cluster (or standalone host) powered by a OpenSUSE Kubic #kubeadm host https://kubic.opensuse.org/
This file contains 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
SHELL=/bin/bash | |
# = ^ . ^ = | |
SEP?=- | |
COLS=$(shell tput cols) | |
.PHONY: separator test | |
test: | |
@$(MAKE) -s separator |
This file contains 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 -vxe | |
# = ^ . ^ = | |
# https://medium.com/@jonathan.leitschuh/zoom-zero-day-4-million-webcams-maybe-an-rce-just-get-them-to-visit-your-website-ac75c83f4ef5 | |
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-13449 | |
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-13450 | |
# https://gist.github.com/JLLeitschuh/e2550ddd8d6dfd94447b0b557891ba30.git | |
# https://gist.github.com/tonejito/6a564deb45b50407f6bc8a8a140f027b.git | |
# https://twitter.com/JLLeitschuh/status/1148310958391091200 | |
# https://twitter.com/jdpearce/status/1148507087862947840 |
This file contains 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
# Generated by iptables-save v1.4.21 on Wed Dec 26 00:02:00 2018 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:APACHE - [0:0] | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p icmp -j ACCEPT | |
-A INPUT -s 10.0.0.0/8 -j ACCEPT |
This file contains 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 | |
# Create and change to ${TMP_DIR} | |
TMP_DIR=${HOME}/tmp | |
test -e ${TMP_DIR} || mkdir -vp ${TMP_DIR} | |
cd ${TMP_DIR} | |
# Output files in ${TMP_DIR} | |
PS_FILE=ps.log | |
NETSTAT_FILE=netstat.log |
This file contains 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 | |
# https://docs.docker.com/engine/reference/commandline/login/ | |
# https://docs.docker.com/engine/reference/commandline/logout/ | |
BASH_LOGOUT=~/.bash_logout | |
grep "docker logout" ${BASH_LOGOUT} | |
test -e ${BASH_LOGOUT} -a "$?" -eq 0 || echo "docker logout" | tee -a ${BASH_LOGOUT} |
This file contains 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/bin/env python | |
# = ^ . ^ = | |
import math | |
pi = math.pi | |
a = 2 * pi | |
print "a = 2 * pi => " , a | |
b = pi ** a |
This file contains 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
{print " export SSHPASS=\""$2"\"; sshpass -e ssh-copy-id -o StrictHostKeyChecking=no -i "$3" root@"$1""} |
This file contains 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 | |
# https://www.debian.org/security/2019/dsa-4371 | |
# https://security-tracker.debian.org/tracker/CVE-2019-3462 | |
function check() | |
{ | |
dpkg --compare-versions ${1} ge ${2} | |
if [ "$?" -eq 0 ] |
This file contains 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 -vx | |
# SBoM - Software Bill of Materials | |
# As seen in @TheHackersNews | |
# https://twitter.com/TheHackersNews/status/1085606422379970560?s=19 | |
apt-cache depends --recurse \ | |
--no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances --no-pre-depends \ | |
${1} | |
| grep "^\w" | |
| sort -u |