Category Archives: Tips

Upgrade kubernetes

Upgrade version by version, example 1.18->1.19->1.20,… Check next version of kubeadm, select next max version yum list –showduplicates kubeadm –disableexcludes=kubernetes Upgrade kubeadm to next version sudo yum install -y kubeadm-<version> –disableexcludes=kubernetes Verify new kubeadm version kubeadm version Find upgrade plan kubeadm upgrade plan Upgrade to max version in plan kubeadm upgrade apply <version> Upgrade node […]

using gdb

launch gdb gdb <execute path> [core file path] run run [args] r [args] make break point b line_number break line_number break [file_name]:line_number break [file_name]:func_name Printing the variable values print <variable> p <variable> Continue, stepping over and in c or continue: Debugger will continue executing until the next break point. n or next: Debugger will execute […]

[Win10] Remove windows apps

Get-AppxPackage -allusers *<packageName>* | Remove-AppxPackage Type regedit then hit Enter. Go to the follow Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ Create a new key inside the Windows key. Right-click the Windows key and choose New > Hit Key. Name the new key CloudContent. Create a new value inside that new key. Right-click the CloudContent key and select New […]

Enable X11 Forwarding in CentOS/RHEL 6/7

X11 forwarding refers to executing such a program remotely through an SSH (Secure Shell) connection. It’s mean the executable file itself is hosted on a different machine than where the graphical interface is being displayed. The graphical windows are forwarded to your local machine through the SSH connection. Step 1: Install Required Packages First install […]

Programming ATtiny85 with Arduino Uno © GPL3+

Step by step on how to program a ATtiny85 microcontroller with Arduino Uno development board. I am working on a project which requires reading multiple sensor data on different locations. These require only few PWM pins so using multiple Arduino Uno would be expensive and unnecessary. So I decided to use ATtiny85 microcontroller in place […]

[K8s] Kubernetes – restrict user access to one namespace

In this example, we will create dev namespace and token for access this namespace only Create Namespace kubectl create namespace dev Create Service Account with permissions Create file permission-dev-namespace.yaml with content: — apiVersion: v1 kind: ServiceAccount metadata: name: dev-user namespace: dev — kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: dev-user-full-access namespace: dev rules: – apiGroups: [“”, […]

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.