gcloud – Google Cloud SDK throws Reachability Check failed after Command Line Tools update on macOS 12.4

After the software update of Command Line Tools for Xcode to the version 13.4 the gcloud compute ssh command stopped working with the error [SSL: CERTIFICATE_VERIFY_FAILED] certificate failed: unable to get local issuer certificate. I’m not behind proxy or firewall. What I’ve tried so far: updating google cloud sdk, then reinstalling, then removing and installing … Read more

python – How can I silence logs of a command in .ipynb file?

How can I hide the results of a terminal command? I’m ran this code on google-colab: import sys !{sys.executable} -m pip install -U pandas-profiling[notebook] !jupyter nbextension enable –py widgetsnbextension I already tried using warning library, but it didn’t work. And I’m getting these logs in the file that I’d like to hide: Requirement already satisfied: … Read more

How to Build a Simple CLI With Oclif

Salesforce developers have contributed much to the open-source community. Among their many contributions is an important, but perhaps lesser-known, project named oclif. The Open CLI Framework was announced in early 2018 and has since grown to become the foundation for the Salesforce CLI and the Heroku CLI. In this post, we will provide a brief … Read more

python 3.x – distutils.errors.DistutilsError: Command . . . returned non-zero exit status 1

Ubuntu 20.04.4 LTS, pyenv 2.3.1, python3-distutils 3.8.10-0ubuntu1~20.04, libffi-dev 3.3-4, setuptools 58.1.0, pip-22.1.2 machine@machine-HP-ProBook-9000: ~$ pyenv virtualenv 3.11.0b3 Project-Python-env-3.11.0b3 machine@machine-HP-ProBook-9000:~$ pyenv activate Project-Python-env-3.11.0b3 pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1′ to simulate the behavior. (Project-Python-env-3.11.0b3) machine@machine-HP-ProBook-9000:~$ pip install -r requirements.txt Collecting pyblake2>=1.1.2 Using cached pyblake2-1.1.2.tar.gz (126 kB) Preparing metadata (setup.py) … … Read more

Slack Workspace With Custom Command Using Lambda

We have decided to make our Slack channel more attractive. On our team, most of the IM work-related correspondence is done on other channels (WhatsApp, Jabber), while our goal was to migrate these interactions to Slack. How were we to foster this change? Slack allows the creation of external applications, which is a huge benefit. … Read more

bash – Centos 8 – simple command in a shell script run with sudo privelige says “command not found”

I’m trying to run script as sudo that’s throwing errors on very simple commands on CentOS Linux release 8.4.2105 VM. The script works fine when run without sudo. “myuser” is a valid sudo user. Here is the script as run from the command prompt: #sudo ./xtest.sh Here’s the script: #!/bin/bash echo “shell: $SHELL” grep abc … Read more

python – How do I execute a program or call a system command?

How to execute a program or call a system command from Python Simple, use subprocess.runwhich returns a CompletedProcess object: >>> from subprocess import run >>> from shlex import split >>> completed_process = run(split(‘python –version’)) Python 3.8.8 >>> completed_process CompletedProcess(args=[‘python’, ‘–version’], returncode=0) (run wants a list of lexically parsed shell arguments – this is what you’d … Read more

visual studio code – How do I help Python find Jupyter command ‘jupyter-nbconvert’, to export Jupyter Notebook to HTML?

I am using Jupyter Notebook in VS Code, and trying to export my notebook to HTML through the Notebook menu tab In other words, I am following the instructions from this page I am getting this error (in the end of “Output”), when trying to export a Jupyter Notebook to HTML or PDF: Jupyter command … Read more

Implementing RBAC Configuration for K8s Apps

Security is challenging to implement, and when your infrastructure is made up of many dynamic, scalable, distributed microservices running in containers, the task becomes even more complex. Kubernetes is an open-source container orchestration technology that may be used to automate software applications’ deployment, scaling, and administration. We commonly refer to these levels as the 4Cs … Read more

Geographic Scale With Virtual Machines and Kubernetes Nodes

In my last post, we looked at how we can deploy CockroachDB across multiple regions in Azure with the help of Cilium CNI. In this post, we evolve this architecture to allow for the use of a mix of Kubernetes pods and virtual machines. Because CockroachDB is a single binary it makes it easy to … Read more