Friday, July 10, 2026

winget de instalacion de programas

 winget install --id Notepad++.Notepad++ -e

winget install -e --id Microsoft.VisualStudioCode

winget install Microsoft.VisualStudio.2022.Community

winget install -e --id Microsoft.SQLServerManagementStudio.22

winget install -e --id 7zip.7zip

winget install --id=SmartBear.SoapUI -e

winget install Postman.Postman

winget install -e --id Mozilla.Firefox

winget install -e --id KaiKramer.KeyStoreExplorer

winget install -e --id OBSProject.OBSStudio

winget install -e --id PuTTY.PuTTY

winget install -e --id VideoLAN.VLC

winget install -e --id WinMerge.WinMerge

winget install -e --id TeamViewer.TeamViewer



En el caso de que aparezca el error 

Failed when searching source: msstore

An unexpected error occurred while executing the command:

0x8a15005e : The server certificate did not match any of the expected values.


winget settings --enable BypassCertificatePinningForMicrosoftStore


Monday, June 29, 2026

Re instalar adding microsoft Teams en outlook

 https://learn.microsoft.com/en-us/answers/questions/5514779/how-to-reinstall-microsoft-teams-add-in-for-outloo


%SystemRoot%\System32\regsvr32.exe /n /i:user "C:\Users\xxxx\AppData\Local\Microsoft\TeamsMeetingAdd-in\1.26.11802\x64\\Microsoft.Teams.AddinLoader.dll"

Sunday, June 14, 2026

bloquear navegadores via web config HTTP_USER_AGENT

Posterior a ataques via navegador tor o curl llegué a esta configuracion bien util que soporta chrome y edge , todo el resto lo bloquea.

 <system.webServer>
    <rewrite>
          <rules>
          <rule name="Bloquear navegadores no permitidos" stopProcessing="true">
            <match url=".*" />
            <conditions>
              <!-- El signo de exclamación (!) invierte la lógica: bloquea si NO coincide con la expresión regular -->
                <!-- 1. Exclude Chrome -->
                <add input="{HTTP_USER_AGENT}" pattern=".*Chrome.*" negate="true" />
                <!-- 2. Exclude Firefox -->
                <add input="{HTTP_USER_AGENT}" pattern=".*Edge.*" negate="true" />
            </conditions>
            <action type="CustomResponse" statusCode="403" statusReason="Navegador no soportado" statusDescription="Tu navegador no está permitido para acceder a este sitio." />
          </rule>
          </rules>
    </rewrite>


Cambiar resolucion de la pantalla del celular via ADB Samsung Galaxy S8

 Instalé Revolution X y solo aparece en la maxima resolucion, por ende anda mas lento y consume mas recursos.


si lo dejo con la resolucion menor anda mas fluido


adb shell wm size 720x1480 que es la resolucion HD

adb shell wm density 280 

Friday, May 1, 2026

Levantar AI en raspberry Ollama

 # Instalar Ollama

curl -fsSL https://ollama.com/install.sh | sh

# Verificar instalacion

ollama --version

# Iniciar el servicio

sudo systemctl enable ollama

sudo systemctl start ollama

 

https://gemma4-ai.com/es/blog/gemma4-raspberry-pi 

sudo apt install docker.io

https://projects.raspberrypi.org/en/projects/llm-rpi/3

esto ultimo para poder ver ollama web.

sudo docker run -d -p 192.168.1.xxx:3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama


Friday, March 27, 2026

Para evitar que Linux hiberne o se suspenda al cerrar la tapa mediante consola

 # 1. Editar el archivo de configuración

sudo nano /etc/systemd/logind.conf

# 2. Buscar y modificar/descomentar (quitar el #) la línea:
HandleLidSwitch=ignore

# 3. Guardar y salir (Ctrl+O, Enter, Ctrl+X)

# 4. Reiniciar el servicio para aplicar cambios
sudo systemctl restart systemd-logind

Friday, March 13, 2026

PowerShell para organizar archivos por año mes y dia

 $origen = "D:\DeleteMe"

Get-ChildItem $origen -File | ForEach-Object {

    # Obtener fecha de modificación en formato YYYYMMDD

    $fecha = $_.LastWriteTime.ToString("yyyyMMdd")

    # Crear carpeta destino

    $carpetaDestino = Join-Path $origen $fecha

    if (!(Test-Path $carpetaDestino)) {

        New-Item -ItemType Directory -Path $carpetaDestino | Out-Null

    }

    # Mover archivo

    Move-Item $_.FullName $carpetaDestino

}