aksdebug *nodename*
to be able to exec into an AKS node (unlocking Metricbeat, for example)aksnode *cluster* *resourcegroup*
to see nodepools' Kubernetes version-
aksnodeupg *cluster* *resourcegroup* *newkubeversion* *nodepoolname*
upgrade a nodepool to new Kubernetes versiongetevents *nodepoolname*
continuous flow of Kubernetes events related to a specific nodepoolwatch getnodepool *nodepoolname*
displays nodepool's hosts' state every 2 secondswatch podsnotrunning *nodepoolname*
displays not ready Pods on nodepool every 2 seconds
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 | |
# -*- coding: utf-8 -*- | |
""" | |
This script retrieves information from guestInfo.ovfEnv and | |
print the OVF properties. | |
In second time, it use OVF properties to reset the root password. | |
""" | |
import subprocess |
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
### /etc/apt/sources.list modifications (add contrib, non-free) | |
# Generated by distrobuilder | |
deb https://deb.debian.org/debian bullseye main contrib non-free | |
deb https://deb.debian.org/debian bullseye-updates main contrib non-free | |
deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free | |
#### First step | |
sudo apt update -y && sudo apt upgrade -y | |
#### Chromium ed altri |
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
kubectl get pv -o json | \ | |
jq -r '.items[] | \ | |
select(.metadata.annotations."pv.kubernetes.io/provisioned-by" == "kubernetes.io/azure-disk") | \ | |
[ .spec.claimRef.name, .spec.claimRef.namespace, .spec.capacity.storage] | \ | |
@csv' |
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
VMware vSphere 6 Enterprise Plus | |
1C20K-4Z214-H84U1-T92EP-92838 | |
1A2JU-DEH12-48460-CT956-AC84D | |
MC28R-4L006-484D1-VV8NK-C7R58 | |
5C6TK-4C39J-48E00-PH0XH-828Q4 | |
4A4X0-69HE3-M8548-6L1QK-1Y240 | |
VMware vSphere with Operations Management 6 Enterprise | |
4Y2NU-4Z301-085C8-M18EP-2K8M8 | |
1Y48R-0EJEK-084R0-GK9XM-23R52 |
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
# high quality conversion | |
ffmpeg -i "prova.webm" -crf 23 "prova.mp4" | |
# adding srt extracted via AWS Transcribe | |
ffmpeg -i prova.mp4 -i prova.srt prova-out.mp4 |
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
[prova|default] ferdi@ferdi-U820:~$ kubectl get deploy -o json -A | jq -r '.items[] | {NAME:.metadata.name,NAMESPACE:.metadata.namespace,IMAGE:.spec.template.spec.containers[].image} | select(.IMAGE | contains("myword"))' |
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
ferdi@ferdi-U820:~$ cat public_test.ppk | |
---- BEGIN SSH2 PUBLIC KEY ---- | |
Comment: "rsa-key-20220214" | |
AAAAB3NzaC1yc2EAAAADAQABAAACAQCE8JCObbX4s84AYZVHceFaK0F1O2a0Shpt | |
HVJh/jjAScNGfw2ViQ5rXXVT2AcJeDjSdhEqiFlSfLgquOv8p7nv2IlQRI03YD9T | |
/FlitPMWQYX72ox1C2B8AG+FpdexqDyduc5y8hNakE5xZy5IQo7VK+LRMwA/5sTD | |
Ym20WSw4WCDDUnJdvHoICGab1pPnDf0qsCNL4uSeD7SurAZDeywUKlK0iYlRRnZv | |
UuznY7HWyE6POf56ppyZRCXPkNx8jF2S/8KJz6K/2niS8Q1VqrHSKqxxh/SGyBDe | |
rFJC0pHhK3oyHghS8aNTniU4ya+PXqlzY209xcgS7SO7qOYa4goKPuPvllPALzc0 | |
YfbzLWZ0ki47FsH2QEJiQ1HkEMg2fjhJQ2zr54YJh/2lUrn9CzO2sfTLxa9Y649Q |
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
ferdi@DESKTOP-7DEMIAH:/mnt/c/Users/ferdi$ curl http://gitlab.domain.it/api/v4/users?private_token=vhJEVFPdqGl59C42\&[email protected] | jq '.' | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 835 100 835 0 0 8434 0 --:--:-- --:--:-- --:--:-- 8434 | |
[ | |
{ | |
"id": 132, | |
"name": "Uno Due", | |
"username": "unodue", | |
"state": "active", |
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
https://stackoverflow.com/questions/50087544/disable-ssl-redirect-for-kubernetes-nginx-ingress/50087545 | |
... | |
kind: Ingress | |
metadata: | |
name: project_name-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
... |
NewerOlder