WordPress database error: [Disk full (/tmp/#sql-temptable-1-0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]
SHOW COLUMNS FROM `wp_cptch_whitelist` LIKE 'ip_from_int'

WordPress database error: [Disk full (/tmp/#sql-temptable-1-0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]
SHOW FULL COLUMNS FROM `wp_options`

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/class-wpdb.php:1849) in /var/www/html/wp-includes/feed-rss2-comments.php on line 8 Comments for My Personal Blog https://blog.kubovy.eu shit happens... Tue, 10 Sep 2024 07:57:28 +0000 hourly 1 https://wordpress.org/?v=6.7.5 Comment on The Kubernetes 110 pod limit per node by Diego Durán https://blog.kubovy.eu/2020/05/16/the-kubernetes-110-pod-limit-per-node/#comment-79 Tue, 10 Sep 2024 07:57:28 +0000 https://blog.kubovy.eu/?p=2318#comment-79 Quick fix when there are a lot of pods and a few nodes…

Thank you!

]]>
Comment on LaTeX TikZ BPMN 2.0 Events by Richard https://blog.kubovy.eu/2013/09/30/latex-tikz-bpmn-2-0-events/#comment-78 Fri, 06 Sep 2024 13:47:50 +0000 http://blog.kubovy.cz/?p=1649#comment-78 Hi,
tex file and package bpmn-events.sty do not match.
It would cool if you can fix it.

]]>
Comment on Retrieve TLS certificates from Kubernetes by John R https://blog.kubovy.eu/2020/05/16/retrieve-tls-certificates-from-kubernetes/#comment-77 Mon, 22 Apr 2024 16:20:26 +0000 https://blog.kubovy.eu/?p=2324#comment-77 I prefer the more native way of doing this, which doesn’t need jq installed and I consider cleaner:

https://www.adyxax.org/blog/2020/08/06/get-tls-certificate-and-key-from-a-kubernetes-secret/#the-solution

kubectl get secret mysecret -o json -o=jsonpath=”{.data.tls\.crt}” | base64 -d > certchain.pem
kubectl get secret mysecret -o json -o=jsonpath=”{.data.tls\.key}” | base64 -d > cert.key

]]>
Comment on Retrieve TLS certificates from Kubernetes by Tobias Hochgürtel https://blog.kubovy.eu/2020/05/16/retrieve-tls-certificates-from-kubernetes/#comment-76 Sat, 04 Nov 2023 14:59:54 +0000 https://blog.kubovy.eu/?p=2324#comment-76 I have a little improvement, so that it works also with MacOS…

““
if [[ “$OSTYPE” == “linux-gnu”* ]]; then
SED=”sed”
elif [[ “$OSTYPE” == “darwin”* ]]; then
# Mac OSX: brew install gnu-sed
SED=”gsed”
fi
“`

—-

“`
#!/usr/bin/env bash

KUBECTL=”kubectl”
OUTPUT=${1:-“$(pwd)/certificates”}
SED=”sed”

if [[ “$OSTYPE” == “linux-gnu”* ]]; then
SED=”sed”
elif [[ “$OSTYPE” == “darwin”* ]]; then
# Mac OSX: brew install gnu-sed
SED=”gsed”
fi

for secret in $(${KUBECTL} get secrets –field-selector type=kubernetes.io/tls –all-namespaces -o=custom-columns=’NAMESPACE:metadata.namespace’,’NAME:metadata.name’ | tail +2 | ${SED} -E ‘s/\s+/\//g’); do
NAMESPACE=$(echo ${secret} | cut -d”/” -f1)
NAME=$(echo ${secret} | cut -d”/” -f2)
echo -n “${NAMESPACE}: ${NAME}>”

if [ -n “$(${KUBECTL} get secret -n ${NAMESPACE} ${NAME} -o json | jq -r ‘.data.”tls.crt”‘ | base64 -d)” ]; then

DOMAIN=$(${KUBECTL} get secret -n ${NAMESPACE} ${NAME} -o json | jq -r ‘.data.”tls.crt”‘ | base64 -d | openssl x509 -noout -text | grep “Subject: CN = ” | ${SED} -E ‘s/\s+Subject: CN = ([^ ]*)/\1/g’)
echo -n ” ${DOMAIN}”

mkdir -p “${OUTPUT}/${DOMAIN}”

${KUBECTL} get secret -n ${NAMESPACE} ${NAME} -o json | jq -r ‘.data.”tls.key”‘ | base64 -d > “${OUTPUT}/${DOMAIN}/privkey.pem”
${KUBECTL} get secret -n ${NAMESPACE} ${NAME} -o json | jq -r ‘.data.”tls.crt”‘ | base64 -d > “${OUTPUT}/${DOMAIN}/fullchain.pem”

echo ” DONE”
else
echo ” FAILED”
fi
done
““

]]>
Comment on Retrieve TLS certificates from Kubernetes by dchau https://blog.kubovy.eu/2020/05/16/retrieve-tls-certificates-from-kubernetes/#comment-75 Wed, 31 May 2023 21:30:12 +0000 https://blog.kubovy.eu/?p=2324#comment-75 Here is my script to get all tls keys from a k8s namespace:

##Get all tls keys from a k8s namespace
#!/bin/bash

NAMESPACE=”external-tls”

while IFS= read -r SECRET_NAME
do
# Export TLS Cert
kubectl get secret -n “${NAMESPACE}” “${SECRET_NAME}” -o json | jq -r ‘.data.”tls.crt”‘ | base64 -d > “${SECRET_NAME}.crt”

# Export Private Key
kubectl get secret -n “${NAMESPACE}” “${SECRET_NAME}” -o json | jq -r ‘.data.”tls.key”‘ | base64 -d > “${SECRET_NAME}.key”

done < 1 {print $1}’)

]]>
Comment on WS281x using PIC by Tirdad sadri nejad https://blog.kubovy.eu/2019/02/17/ws281x-using-pic/#comment-74 Thu, 31 Mar 2022 09:58:34 +0000 https://blog.kubovy.eu/?p=2176#comment-74 Hi, and thank you for the post.
I further went down the de morgan way and found out, that the whole expression of “(SCK & !SDO & PWM) | (SCK & SDO)” is realized using just 3 NAND gates. I made driver using a SPI and PWM on a STM8S and a single 74HC00 logic (4 NANDs). to describe it here in this comment, I write a nand as a “nand(a,b)”:

nand( nand(sck,sdo) , nand(sck,pwm) ).

that’s wonderfully ez and straight forward. one gate has sck,pwm inputs, the other one has sck,sdo inputs. both outputs go to the inputs of the third gate and the output is readilly usable. no additional inverters are used; even the PWM is not negated.
I’ve tested it and it works perfectly.

]]>
Comment on The Kubernetes 110 pod limit per node by Paolo Denti https://blog.kubovy.eu/2020/05/16/the-kubernetes-110-pod-limit-per-node/#comment-73 Sun, 02 Jan 2022 05:13:12 +0000 https://blog.kubovy.eu/?p=2318#comment-73 thank you, I got into the same issue and this helped

]]>
Comment on 20×4 LCD controlled by PIC16F18855/75 using LCM1602 IIC/I2C by king F https://blog.kubovy.eu/2019/01/01/20x4-lcd-controlled-by-pic16f18855-75-using-lcm1602-iic-i2c/#comment-70 Fri, 27 Nov 2020 21:59:58 +0000 http://blog.kubovy.eu/?p=1998#comment-70 Hi, I just tried the code, it didnt want to compile until I edited the name of MCC generated files and also removed modules, however the display doesn’t show characters.

]]>
Comment on LaTeX TikZ BPMN 2.0 Gateways by Filipe https://blog.kubovy.eu/2013/10/04/latex-tikz-bpmn-2-0-gateways/#comment-19 Sat, 04 Jul 2020 15:38:53 +0000 http://blog.kubovy.cz/?p=1628#comment-19 Thank you for sharing this code. I couldn’t reproduce it here. The variants “Split” and “Join” do not work.

]]>
Comment on LaTeX TikZ BPMN 2.0 Gateways by Hossain https://blog.kubovy.eu/2013/10/04/latex-tikz-bpmn-2-0-gateways/#comment-12 Mon, 02 Mar 2020 10:00:02 +0000 http://blog.kubovy.cz/?p=1628#comment-12 Hi,
Thanks for this great library.
But I don’t know why only the first column works.

https://www.overleaf.com/4889638728drjmhvzckmny

]]>