jueves, 25 de septiembre de 2025
viernes, 23 de agosto de 2024
POWER SHELL | ESCRIBIR MAS DE UNA LINEA A LA VEZ | EJECUTAR UN API DESDE POWER SHELL
for($i=1;$i -le 10; $i++) {
Invoke-WebRequest -Uri 'http://localhost:3000/'Write-Host
}
jueves, 16 de mayo de 2024
INSTALAR TELNET POR COMANDO | WINDOWS 2019 SERVER
Comando con administador en Power Shell
Install-WindowsFeature -name Telnet-Client
lunes, 22 de abril de 2024
NET FRAMEWORK | DETERMINAR VERSION INSTALADA
https://learn.microsoft.com/es-es/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed
viernes, 9 de febrero de 2024
DOTNET CORE - VERSIONES
Terminal de linea de comandos: POWER SHELL:
dotnet --list-sdks
dotnet --list-runtimes
miércoles, 24 de enero de 2024
NOTEPAD++ - Quitar caracteres despues de otro caracter
https://www.enmimaquinafunciona.com/pregunta/100025/eliminar-el-texto-despues-del-signo
miércoles, 22 de noviembre de 2023
JAVA | Crear nuevos Enlace Simbólicos en el directorio "javapath"
Eliminar el Enlace Simbólico Existente:
- Abre la carpeta "javapath" (por ejemplo, "C:\Program Files\Common Files\Oracle\Java\javapath").
- Encuentra el enlace simbólico existente, por ejemplo,
java.exe. - Haz clic derecho sobre el enlace simbólico y selecciona "Eliminar".
Crear un Nuevo Enlace Simbólico:
- Abre un símbolo del sistema o terminal con privilegios de administrador. Puedes hacer clic con el botón derecho en el menú de inicio y seleccionar "Símbolo del sistema (Admin)" o "Windows PowerShell (Admin)".
- Navega a la carpeta "javapath". Puedes usar el comando
cdpara cambiar de directorio."C:\Program Files\Common Files\Oracle\Java\javapath" - Crea un nuevo enlace simbólico usando el comando
mklink. Por ejemplo, si deseas apuntar a la versión 11 de Java, podrías hacer algo como:mklink java.exe "C:\Program Files\Java\jdk-11.x.x\bin\java.exe" - Repite el proceso para otros ejecutables como
javac.exe, si es necesario.
Verificar el Cambio:
- Abre una nueva ventana de línea de comandos o terminal y ejecuta
java -versionpara asegurarte de que la versión correcta de Java se está utilizando.
- Abre una nueva ventana de línea de comandos o terminal y ejecuta
lunes, 20 de noviembre de 2023
AZURE CLI | Instalación
Instalación de la CLI de Azure para Windows | Microsoft Learn
32 BITS
https://aka.ms/installazurecliwindows
64 BITS
https://aka.ms/installazurecliwindowsx64
viernes, 20 de octubre de 2023
AZURE - LOGIN WITH TENANT
SOLUCION:
az login --tenant 75fb3a5b-2add-4c27-8dfd-1e8d7a8166ff
VIDEO:
https://www.youtube.com/watch?v=yGWpKw059E4
jueves, 5 de octubre de 2023
AZURE cambiar de Supscripcion
# change the active subscription using the subscription name az account set --subscription "My Demos" # change the active subscription using the subscription ID az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # change the active subscription using a variable subscriptionId="$(az account list --query "[?name=='my case sensitive subscription full name'].id" --output tsv)" az account set --subscription $subscriptionId
https://learn.microsoft.com/es-es/cli/azure/manage-azure-subscriptions-azure-cli
jueves, 14 de septiembre de 2023
SSH - PUBLIC KEY Y PRIVATE KEY
Instalar open SSL en Windows 10
https://www.ssl.com/es/c%C3%B3mo/instalar-openssl-en-windows-con-cygwin/
openssl genrsa -out clave_privada.pem 3072
openssl rsa -in clave_privada.pem -pubout -out clave_publica.pem
Fuente:
https://parzibyte.me/blog/2022/11/24/generar-par-claves-rsa-openssl-privada-publica/
miércoles, 23 de agosto de 2023
GIT ALIAS
[alias]
ec = config --global -e
co = checkout
br = branch
cm = commit -am
st = status
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
save = !git add -A && git commit -m 'SAVEPOINT'
wip = commit -am "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
decorate=git log --all --decorate --oneline --graph
lg=log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all
lg2=log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
f = "!git ls-files | grep -i"
grep = grep -Ii
gr = grep -Ii
gra = "!f() { A=$(pwd) && TOPLEVEL=$(git rev-parse --show-toplevel) && cd $TOPLEVEL && git grep --full-name -In $1 | xargs -I{} echo $TOPLEVEL/{} && cd $A; }; f"
la = "!git config -l | grep alias | cut -c 7-"
lasttag = describe --tags --abbrev=0
lt = describe --tags --abbrev=0
ours = "!f() { git co --ours $@ && git add $@; }; f"
theirs = "!f() { git co --theirs $@ && git add $@; }; f"
cob = checkout -b Checkouts a new not yet existing branch.
f = fetch -p Fetches from a repository and prune any remote-tracking no longer existed references on the remote.
p = push Push the changes to a remote.
bd = branch -d Deletes a branch only if it has been merged.
ba = branch -a Lists both remote-tracking and local branches.
bD = branch -D Force to delete a branch.
dc = diff --cached Displays the staged changes.
https://www.w3docs.com/learn-git/git-alias.html#:~:text=A%20git%20alias%2C%20also%20known%20as%20a%20shortcut%2C,git%20config%20command%20and%20the%20git%20configuration%20files.
https://elbauldelprogramador.com/21-aliases-utiles-para-git/
GIT: Ver todos los git alias
git config --list |grep alias
git config -l | grep alias
https://platzi.com/discusiones/1557-git-github/27607-hay-alguna-forma-de-ver-el-listado-de-todos-los-alias-que-he-creado/
LIMPIAR CACHE de Office
Borre manualmente la memoria caché en Excel, Word y PowerPoint
Para quitar todos los complementos instalados de prueba de Excel, Word y PowerPoint, elimine el contenido de la carpeta siguiente.
%LOCALAPPDATA%\Microsoft\Office\16.0\Wef\https://learn.microsoft.com/es-es/office/dev/add-ins/testing/clear-cache
miércoles, 16 de agosto de 2023
C# CONVERTIR STRING A DECIMAL CON DOS DECIMALES
https://stackoverflow.com/questions/6356351/formatting-a-float-to-2-decimal-places
jueves, 3 de agosto de 2023
Eliminar Usuarios de Dominio en Windows 10
https://microsofters.com/186243/como-borrar-los-perfiles-de-usuario-de-dominio-en-windows-10-y-windows-11/
jueves, 30 de marzo de 2023
.NET C# - Dividir un String por '\n'
Ejemplo:var text =
"somet interesting text\n" +
"some text that should be in the same line\r\n" +
"some text should be in another line";
string[] stringSeparators = new string[] { "\r\n" };
string[] lines = text.Split(stringSeparators, StringSplitOptions.None);
Console.WriteLine("Nr. Of items in list: " + lines.Length); // 2 lines
foreach (string s in lines)
{
Console.WriteLine(s); //But will print 3 lines in total.
}Fuente: https://stackoverflow.com/questions/22185009/split-text-with-r-n
lunes, 20 de marzo de 2023
GIT: Salir de la pantalla de un texto abierto en Prompt
That means:
- Press Escape. This should make sure you are in command mode
- type in
:wq - Press Return
An alternative that stdcall in the comments mentions is:
- Press Escape
- Press shift+Z shift+Z (capital
Ztwice).
How to save a git commit message from windows cmd?
miércoles, 22 de febrero de 2023
Conflictos GIT
https://phoenixnap.com/kb/how-to-resolve-merge-conflicts-in-git
https://www.youtube.com/watch?v=H2DuJNWbqLw&t=1s
