Auto-update the Windows hosts file with a hosted list

Why do this There are a multitude of reasons to do this or use an application like the one shared here. Maybe there is an application that phones home and you need to test how it behaves when it loses connection with a URL. Or there is a need to set this up to keep a system from accessing unsecure sites/services online. Where to get hostctl from hostctl’s GitHub page: https://github.com/guumaster/hostctl ...

January 6, 2025 · 1 min · Ismael Lamberty

Run a PowerShell ps1 script hidden from view and scheduled on Task Scheduler for Windows

The script launcher We need a script launcher as PowerShell scripts run in the foreground and we don’t want the window of this script to appear at all. This one can be a .vbs file that will be setup like this: In Task Scheduler Action: Start a program Program/script: wscript Add arguments (optional): <path\to\the\.ps1\file> Here is the .vbs script: command = "powershell.exe -ExecutionPolicy Bypass C:\Users\Ismael\Documents\GitHub\djismgaming.github.io\blogupdate.ps1" set shell = CreateObject("WScript.Shell") shell.Run command, 0

November 29, 2024 · 1 min · Ismael Lamberty

Set up your SSH key-based authentication from Windows in a single line

Using Linux directly to interact with Linux servers is pretty great and seamless. But when your daily driver is Windows, this can be a little more cumbersome. For instance, when connecting with the Windows version of OpenSSH there is a way to copy your generated key for simple password-less logins after that. Generate your private and public keys in your Windows PowerShell shell Execute the command below in Windows Terminal or any other terminal in Windows: ...

October 18, 2023 · 2 min · Ismael Lamberty