Entradas

Mostrando entradas de 2024

My Top Dotnet Command Snippets

Here are some top dotnet command snippets that developers frequently use: The 'dotnet new' command is utilized to create a new project. It creates a new project based on the specified template. You can use different templates for creating various types of projects like console applications, class libraries, unit test projects, etc. The syntax is as follows: dotnet new console -n MyApp the templates are in https://learn.microsoft.com/es-es/dotnet/core/tools/dotnet-new#arguments Build a project: dotnet build Run a project: dotnet run Test a project: dotnet test Publish a project for a specific runtime: dotnet publish -c Release -r win10-x64 Clean a project: dotnet clean Restore the dependencies of a project: dotnet restore -- Atte. Victor Hugo Saavedra http://vhspiceros.blogspot.com

How to Limit Memory and Resources in Docker Desktop on Windows

Imagen
I'm working with Docker Desktop on Windows as part of my daily routine, primarily for database engines such as PostgreSQL and Oracle. Since I use my computer intensively, with numerous browser tabs open and running multiple instances of Visual Studio 2022 and SQL Server, I needed to limit the resources of my computer. To limit the RAM, CPU, and other resources in Windows, it's necessary to create a file named .wslconfig in your home directory. [wsl2] memory = 4GB   # Limits VM memory in WSL 2 Documentation https://learn.microsoft.com/en-us/windows/wsl/wsl-config Before Setting After Setting -- Atte. Victor Hugo Saavedra http://vhspiceros.blogspot.com

Install Oracle 19C in local with Docker

Imagen
I need to work with Oracle in specify the version 19C, But I really don't would like install in my local environment, So I tried to install as docker container with success result. 1.- First step obviouslyis install docker desktop from https://www.docker.com/products/docker-desktop/ 2.- Download the cdocker image with the follow command docker pull doctorkirk/oracle-19c 3.- Create directory in your local machine (to not lose the information when stop docker ) and create a container. Here one example docker run --name oracle-container -m 5g -p 1521:1521 -e ORACLE_SID=oracle -e ORACLE_PWD=123456789 -e ORACLE_MEM=2000 -v C:/work/oracle-19c/oradata/:/opt/oracle/oradata doctorkirk/oracle-19c In this case the swap direcory is  C:/work/oracle-19c/oradata/ 3.- Get the id of container and and run it 4.- Finally you can connect by database client like dbeaver or  SQl developer with the similar configuration -- Atte. Victor Hugo Saavedra http://vhspiceros.blogspot.com