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\nnameserver’ | 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 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

How do you rationalize the death of a pet

I’m sorry to hear about the loss of your pet. Losing a pet can be a deeply emotional and difficult experience. Rationalizing the death of a pet can be approached in several ways, depending on your personal beliefs and values. Here are a few suggestions:

  1. The natural cycle of life: Understand that death is a natural part of the life cycle for all living beings, including our pets. Their lifespans are often much shorter than ours, and it’s normal for them to pass away before we do.
  2. Focus on the good times: Remember the happy moments you shared with your pet and the positive impact they had on your life. Cherish these memories and remind yourself that your pet lived a fulfilling life.
  3. Acceptance: Accepting the reality of the situation can help you come to terms with your pet’s death. While it may be painful at first, acceptance allows you to process your grief and move forward.
  4. Grieve and heal: Give yourself permission to grieve the loss of your pet. Grieving is a natural response to losing a loved one and is an essential part of the healing process. Allow yourself the time and space to work through your emotions.
  5. Find support: Reach out to friends, family, or pet loss support groups to share your feelings and experiences. Connecting with others who understand your pain can be helpful in the healing process.
  6. Memorialize your pet: Find a meaningful way to honor your pet’s memory, such as planting a tree, creating a photo album, or holding a memorial service. This can help you feel connected to your pet even after their death.
  7. Consider adopting again: When you feel ready, consider adopting another pet. While no pet can replace the one you’ve lost, opening your heart to another animal can help bring joy and companionship back into your life.

Remember, it’s important to give yourself time to grieve and heal. The process of rationalizing the death of a pet is different for everyone, so take the time you need to come to terms with your loss