Conda/Miniconda is a great virtual enviroment server, saving enviroments to conda is really simple: 1 – Locate the directory for the conda environment in your terminal window by running in the terminal echo $CONDA_PREFIX. 2 – Enter that directory and create these subdirectories and files (MAC/Linux): 2.1 – Enter that directory and create these subdirectories…
Python tricks :)
Formatting big integers – Python 3.6+ Grouping Hexadecimal and bits Lib pathlib to manipulate system’s path String Format with interpolation – Python 3.6+ Reference
Moving the mouse cursor with Python
Moving the mouse cursor using python is really easy using python with package pyautogui
Implementing Dotnet Core Entity Framework with PostgreSQL
Entity framework is a easy way to manage your DB connections and databases Creating an app using dotnet core Access the application’s path and install the packages Creating the model Creating the DataContext Creating the class to get our connection string Creating your class DataAccess to manipulate our database with options to use two BDs…
Kubernetes shortcuts
Creating alias for Kubectl This will persist until you log out. To save this alias, add it to your .bashrc or .profile file. Creating a alias to set the context Reference: https://medium.com/james-reads-public-cloud-technology-blog/3-basic-kubernetes-shortcuts-for-faster-command-line-kung-fu-5c041295ea78
Deploying PostgreSQL with Kubernetes
PostgreSQL is a powerful database and we can scale it easy with Kubernetes In this case we gonna use Kubernetes to store our pods of Postgres with a data value external because if we any pod stop accidentally we won’t lose our data. Configuring our Storageclass Now we gonna configure our Persistent Volume with 5GB…
Deploying Apache Kafka on Kubernetes Local
Kafka is a powerful framework of message queue and more, so let’s install it on our local environment to test! Our ingredients: 1 – Helm; 2 – Kubernetes; 3 – Helm Apache Kafka. Let’s init our Helm support: Let’s download a copy of the Helm Kafka If you desire, you can expose kafka externally editing…
Deploying dotnetcore Applications on Kubernetes with Service Mesh Kuma
On these days, microservices are improving our productivity, scalability and the disponibility of our apps and saving time (Woow!), to support the security and access control we can use the service mesh to do that so let’s make an example using: dotnetcore, kubernetes and kuma 🙂 Our ingredients: 1 – Kubernetes; 2 – Kuma Mesh;…
Deploying a dotnetcore app on Kubernetes
Deploy an application dotnetcore on Kubernetes locally Installing application dotnetcore demo: Running the app locally: Navigate to the project folder at dotnet-docker/samples/aspnetapp/aspnetapp. Go to http://localhost:5000 in a browser to test the app. Press Ctrl+C at the command prompt to stop the app. Building the application on Docker container: Navigate to the Dockerfile folder at dotnet-docker/samples/aspnetapp. Run the following…
Installing .netcore on Ubuntu 20.04
Download the packages: Installing the SDK To check if everything is good: Reference: https://tecadmin.net/how-to-install-net-core-on-ubuntu-20-04/