ESLint or “Linting” is a tool that can be used to write code that meets certain guidelines. ESLint is supported in Microsoft Visual Studio. You can turn it on or off using these steps.Continue reading “Visual Studio: Enable/Disable ESLint”
For fun, I wanted to build a PHP script that checked a website to see if an item was in stock. I wanted the script to grab all the HTML on a web page and check to see if the words “Out of Stock” were anywhere on the page. Initially, I thought this would take a lot of work. But PHP makes it pretty easy with the use of the file_get_contents function. Here is an example of how I used it.
I recently wanted to create a cron job that ran a PHP script, but could not figure out how to find the valid location on my web server for PHP. Here is how I located it.
This Powershell script finds accounts in Active Directory where the password is set to never expire. Also shows the last time the password was set or reset.
This PowerShell script cycles through a list of users (users.txt) and removes them from all mailboxes in Microsoft Exchange.