Get a quick overview of kubernetes node resources

kubectl get nodes -o jsonpath='{.items[*].status.capacity}’ | jq { “cpu”: “2”, “ephemeral-storage”: “80901592Ki”, “hugepages-1Gi”: “0”, “hugepages-2Mi”: “0”, “memory”: “4012204Ki”, “pods”: “110” }

Fix DNS resolution in WSL2

sudo tee /etc/wsl.conf > /dev/null << EOF [network] generateResolvConf=false EOF rm /etc/resolv.conf echo -e ‘nameserver 8.8.8.8\nnameserver 8.8.4.4’ | sudo tee /etc/resolv.conf > /dev/null; sudo chattr -f +i /etc/resolv.conf;

Pycuda on Python3.11

pycuda fatal error: pyconfig.h: No such file or directory sudo apt-get install python3-dev pip3 install pycuda  

Create Virtual Environment for Python 3.11

sudo apt install python3.11-venv python3 -m venv my-project-env source ~/my-project-env/bin/activate (my-project-env) $ Once you are done with your work to deactivate the environment, simply type deactivate and you will return to your normal shell. deactivate

Change the Python3 default version in Ubuntu

Check python version on terminal: python –version Execute this command to switch to python 3.11: sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.11 1 Check python version: python –version

How enable OpenCL on AMD gpu Ubuntu

UBUNTU 18.04.6 https://www.google.com/search?q=Radeon+linux++22.10&client=firefox-b-d&biw=1760&bih=787&ei=rZFPZLWvD5GaptQP25uE-As&ved=0ahUKEwj1ueeE8tP-AhURjYkEHdsNAb8Q4dUDCA8&uact=5&oq=Radeon+linux++22.10&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIGCAAQFhAeMggIABCKBRCGAzIICAAQigUQhgM6CwgAEIoFEIYDELADSgQIQRgBUI0HWLAIYKsNaAFwAHgAgAGOAYgB_AGSAQMwLjKYAQCgAQHIAQTAAQE&sclient=gws-wiz-serp https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-22-10-2 https://repo.radeon.com/amdgpu-install/22.10.2/ubuntu/bionic/ sudo apt-get install ./amdgpu-install-VERSION.deb amdgpu-install –usecase=workstation,rocm,opencl –opencl=rocr,legacy –vulkan=pro –accept-eula sudo apt-get -y install ocl-icd-opencl-dev opencl-headers To use the ROCr implementation of OpenCL, the running user might need additional permissions depending on OS policy. If clinfo or any openCL application does not work, check ownership and permissions of the render nodes: … Read more

I feel guilty that I didn’t catch my dog’s cancer earlier

I’m not a therapist, but I can try to help provide some support and perspective on this. It’s natural to feel guilt and regret when faced with a situation like this. You care for your dog deeply and want the best for them. However, it’s important to recognize that you’re not a veterinarian or a … Read more

How do you cope with a loss of a dog if you have adhd ?

Coping with the loss of a beloved pet can be difficult for anyone, but it can be especially challenging for individuals with ADHD. Here are some strategies that may help: Allow yourself to grieve: Give yourself permission to experience the full range of emotions associated with the loss. It’s essential to acknowledge your feelings and … Read more